/* Login do eleitor — card igual à Welcome; formulário centralizado */

.voter-login-title {
    margin: 0 0 6px;
    font-size: clamp(1.25rem, 3vw, 1.625rem);
    font-weight: 800;
    line-height: 1.35;
    color: #0f172a;
    letter-spacing: 0.01em;
}

.voter-login-subtitle {
    margin: 0 0 28px;
    font-size: 0.9375rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.voter-login-form,
.voter-reset-form {
    text-align: left;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.voter-login-field {
    margin-bottom: 16px;
}

.voter-login-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #334155;
}

.voter-login-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.voter-login-field-head label {
    margin-bottom: 0;
}

.voter-login-field-link {
    border: 0;
    padding: 0;
    background: none;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #2563eb;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.voter-login-field-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.voter-login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.voter-login-input-wrap i {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}

.voter-login-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9375rem;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.voter-login-input-wrap input:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

.voter-login-input-wrap input[type="password"],
.voter-login-input-wrap input[type="text"] {
    padding-right: 42px;
}

.voter-login-toggle {
    position: absolute;
    right: 8px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    border-radius: 8px;
    cursor: pointer;
}

.voter-login-toggle:hover {
    color: #4285f4;
    background: #f8fafc;
}

.voter-login-card .voter-welcome-button,
.voter-modal-box .voter-welcome-button {
    width: 100%;
    min-width: 0;
    margin-top: 8px;
}

.voter-login-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.voter-login-actions--single {
    grid-template-columns: 1fr;
}

.voter-login-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.voter-login-action-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.voter-login-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.8125rem;
    color: #64748b;
    text-decoration: none;
}

.voter-login-back-link:hover {
    color: #2563eb;
    text-decoration: none;
}

.voter-login-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.8125rem;
    line-height: 1.5;
    text-align: left;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.voter-login-alert i {
    margin-right: 6px;
}

.voter-login-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.voter-login-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Modais */
.voter-modal {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.voter-modal.is-open {
    display: flex;
}

.voter-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}

.voter-modal-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
    padding: 28px 24px 24px;
    text-align: left;
}

.voter-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
}

.voter-modal-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.voter-modal-title {
    margin: 0 0 14px;
    padding-right: 36px;
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
}

.voter-modal-lead {
    margin: 0 0 16px;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
}

.voter-instructions-content {
    font-size: 0.875rem;
    color: #475569;
    line-height: 1.7;
}

.voter-instructions-content ul,
.voter-instructions-content ol {
    margin: 0;
    padding-left: 1.2rem;
}

.voter-instructions-content li {
    margin-bottom: 0.65em;
}

.voter-instructions-content li:last-child {
    margin-bottom: 0;
}

.voter-instructions-content strong,
.voter-instructions-content b {
    color: #334155;
}

body.voter-modal-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .voter-login-actions {
        grid-template-columns: 1fr;
    }

    .voter-modal-box {
        padding: 24px 18px 18px;
    }
}
