/* ShvTerm — Auth Pages (dark mode exclusivo) */

body.shvterm-auth {
    min-height: 100vh;
    background: #0b0f19;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}

/* ── Card ── */
.auth-card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 14px;
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ── Brand ── */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    text-decoration: none;
}

.auth-logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.auth-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f9fafb;
    letter-spacing: -0.03em;
}

/* ── Headings ── */
.auth-title {
    font-size: 1.375rem;
    font-weight: 600;
    color: #f9fafb;
    margin-bottom: 0.375rem;
    letter-spacing: -0.02em;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.75rem;
}

/* ── Form ── */
.auth-form .form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #d1d5db;
    margin-bottom: 0.375rem;
}

.auth-form .form-control {
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 7px;
    color: #f3f4f6;
    font-size: 0.9375rem;
    padding: 0.65rem 0.9rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-form .form-control:focus {
    background-color: #1f2937;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
    color: #f3f4f6;
    outline: none;
}

.auth-form .form-control::placeholder {
    color: #4b5563;
}

.auth-form .form-control.is-invalid {
    border-color: #ef4444;
    background-color: #1f2937;
}

.auth-form .invalid-feedback {
    font-size: 0.8125rem;
    color: #f87171;
}

/* ── Password toggle ── */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
}

.password-toggle:hover {
    color: #9ca3af;
}

/* ── Alert (status/sucesso) ── */
.auth-alert {
    font-size: 0.8125rem;
    border-radius: 7px;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

/* ── Forgot link ── */
.auth-forgot {
    font-size: 0.8125rem;
    color: #0ea5e9;
    text-decoration: none;
}

.auth-forgot:hover {
    color: #38bdf8;
    text-decoration: underline;
}

/* ── Submit button ── */
.btn-auth {
    width: 100%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    border-radius: 7px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    letter-spacing: 0.01em;
    transition: opacity 0.15s, transform 0.1s;
}

.btn-auth:hover {
    color: #fff;
    opacity: 0.92;
}

.btn-auth:active {
    transform: scale(0.99);
    color: #fff;
}

.btn-auth:disabled {
    opacity: 0.55;
    color: #fff;
}

/* ── Divider ── */
.auth-divider {
    height: 1px;
    background: #1f2937;
    margin: 1.5rem 0;
}

/* ── Footer link ── */
.auth-footer {
    font-size: 0.8125rem;
    color: #6b7280;
    text-align: center;
    margin-top: 1.375rem;
    margin-bottom: 0;
}

.auth-footer a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
    color: #38bdf8;
}

/* ── Language switcher (flutuante, bandeiras) ── */
.auth-lang {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
}

.site-lang {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.site-lang-opt {
    display: inline-flex;
    padding: 3px;
    border-radius: 6px;
    line-height: 0;
    opacity: 0.4;
    border: 1px solid transparent;
    transition: opacity 0.15s, border-color 0.15s, background 0.15s;
}

.site-lang-opt:hover { opacity: 0.85; }

.site-lang-opt.active {
    opacity: 1;
    border-color: rgba(14, 165, 233, 0.5);
    background: rgba(14, 165, 233, 0.12);
}

.site-flag svg {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    display: block;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
