/* Login Page Styles - Production Ready */

:root {
    --primary-color: #4285f4;
    --primary-hover: #3367d6;
    --error-color: #d32f2f;
    --success-color: #2e7d32;
    --text-color: #333;
    --text-secondary: #666;
    --border-color: #ddd;
    --background-color: #f5f5f5;
    --card-background: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 2rem;
    background-color: var(--background-color);
    color: var(--text-color);
    background-image: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-y: auto;
}

.login-container {
    background: var(--card-background);
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    width: 90%;
    max-width: 400px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

.login-container:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

/* Информационное сообщение */
.info-message {
    margin-bottom: 1.5rem;
    padding: 0.75rem 1rem;
    background: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    animation: infoMessageSlideIn 0.5s ease;
}

.info-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    justify-content: center;
}

.info-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

@keyframes infoMessageSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CSP-совместимые классы для управления видимостью */
.hidden {
    display: none !important;
}

/* Состояния полей */
.field-error {
    border-color: var(--error-color) !important;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2) !important;
}

.field-success {
    border-color: var(--success-color) !important;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2) !important;
}

.field-normal {
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}

.warning-error {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 4px;
    background-color: rgba(211, 47, 47, 0.1);
    border: 1px solid rgba(211, 47, 47, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--background-color);
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.2);
    background-color: var(--card-background);
}

input::placeholder {
    color: var(--text-secondary);
}

button {
    width: 100%;
    padding: 0.85rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

button:hover {
    background-color: var(--primary-hover);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: var(--border-color);
    cursor: not-allowed;
    transform: none;
}

.error {
    color: var(--error-color);
    margin-top: 1rem;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: rgba(211, 47, 47, 0.1);
    display: none;
    font-size: 0.9rem;
}

.success {
    color: var(--success-color);
    margin-top: 1rem;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    background-color: rgba(46, 125, 50, 0.1);
    display: none;
    font-size: 0.9rem;
}

/* Удален дублирующийся стиль - используется универсальный стиль ниже */

.password-toggle svg,
.password-toggle img {
    width: 16px;
    height: 16px;
    fill: currentColor;
    display: block;
}

/* Удален дублирующийся стиль */

.password-toggle:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.password-toggle:focus {
    outline: none;
    color: var(--primary-color);
    background-color: transparent;
}

.password-toggle:active {
    transform: scale(0.95);
}



/* 🔐 УНИВЕРСАЛЬНЫЕ стили для password-toggle (как в регистрации) */
.password-toggle {
    position: absolute;
    right: 12px;
    top: 65%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto !important;
    z-index: 10;
}

.password-toggle:hover {
    opacity: 1;
    background: none;
    transform: translateY(-50%);
}

.password-toggle:active {
    transform: translateY(-50%);
}

/* 🔐 Стили для неактивного состояния (как в регистрации) */
.password-toggle.inactive {
    opacity: 0.3 !important;
    cursor: not-allowed !important;
    background: rgba(66, 133, 244, 0.05);
}

.password-toggle.active {
    opacity: 0.6;
    cursor: pointer;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 1rem;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.form-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.form-footer .separator {
    margin: 0 0.5rem;
    color: var(--text-secondary);
    font-weight: normal;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    transition: opacity 0.3s ease;
}

.remember-me input[type="checkbox"]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.remember-me:has(input[type="checkbox"]:disabled) {
    opacity: 0.5;
    cursor: not-allowed;
}

.remember-me input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.remember-me label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 2FA Styles */
#2faForm {
    display: none;
}

#2faForm.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.code-input {
    letter-spacing: 0.5em;
    text-align: center;
    font-size: 1.2em;
}

.resend-code {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.resend-code button {
    background: none;
    border: none;
    color: var(--primary-color);
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    cursor: pointer;
}

.resend-code button:hover {
    text-decoration: underline;
}

.resend-code button:disabled {
    color: var(--text-secondary);
    cursor: not-allowed;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    box-shadow: var(--shadow);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.notification.success {
    background-color: var(--success-color);
}

.notification.error {
    background-color: var(--error-color);
}

.form-group.password-group {
    position: relative;
}

.form-group.password-group input {
    padding-right: 44px;
}

/* User selection and caret styles */
body, .login-container, form, .form-group, label {
    caret-color: transparent;
    user-select: none;
}

input, textarea, select {
    caret-color: auto;
    user-select: auto;
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        -webkit-transform: translateY(-10px); 
        -moz-transform: translateY(-10px); 
        -ms-transform: translateY(-10px); 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        -webkit-transform: translateY(0); 
        -moz-transform: translateY(0); 
        -ms-transform: translateY(0); 
        transform: translateY(0); 
    }
}

.login-container {
    -webkit-animation: fadeIn 0.5s ease;
    -moz-animation: fadeIn 0.5s ease;
    -ms-animation: fadeIn 0.5s ease;
    animation: fadeIn 0.5s ease;
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 1rem;
        -webkit-align-items: flex-start;
        -moz-align-items: flex-start;
        -ms-align-items: flex-start;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .login-container {
        margin: 0 auto;
        padding: 1rem 0.5rem;
        width: 95%;
        max-width: none;
        -webkit-border-radius: 8px;
        -moz-border-radius: 8px;
        border-radius: 8px;
    }
    
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    input {
        padding: 0.75rem;
        font-size: 16px;
    }
    
    button {
        padding: 0.75rem;
        font-size: 16px;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .password-toggle {
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 16px;
        top: 65%;
        transform: translateY(-50%);
        z-index: 10;
        background: none;
        border: none;
    }
    
    .password-toggle svg,
    .password-toggle img {
        width: 16px;
        height: 16px;
    }
    
    .form-group.password-group input {
        padding-right: 36px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 0.25rem;
        padding-top: 1rem;
        align-items: flex-start;
    }
    
    .login-container {
        margin: 0 auto;
        padding: 0.5rem;
        max-width: calc(100vw - 0.5rem);
        min-width: 250px;
    }
    
    h1 {
        font-size: 1.3rem;
    }
}

/* Height-based media queries */
@media (min-height: 800px) {
    body {
        align-items: center;
    }
}

@media (max-height: 600px) {
    body {
        align-items: flex-start;
        padding-top: 1rem;
    }
    
    .login-container {
        margin-top: 0;
    }
} 

/* CSS классы для замены inline-стилей из login.js */
.error-visible { display: block !important; }
.success-visible { display: block !important; }
.hidden { display: none !important; }
.form-hidden { display: none !important; }
.form-visible { display: block !important; }
.checkbox-enabled { opacity: 1 !important; cursor: pointer !important; }
.checkbox-disabled { opacity: 0.5 !important; cursor: not-allowed !important; }
.button-disabled { opacity: 0.5 !important; cursor: not-allowed !important; }
.button-enabled { opacity: 1 !important; cursor: pointer !important; }
.form-wide { width: 95% !important; max-width: none !important; }
.form-normal { width: 90% !important; max-width: 450px !important; }
.form-compact { width: 90% !important; max-width: 400px !important; }
.toggle-height { height: 47px !important; }
.error-red { color: #d32f2f !important; }
.success-green { color: #2e7d32 !important; } 

/* Enterprise authentication flow: credentials, MFA choice, TOTP and recovery. */
:root {
    --auth-blue: #075ffb;
    --auth-blue-dark: #0756c9;
    --auth-ink: #10245b;
    --auth-muted: #5b6f9e;
    --auth-line: #cfe0fc;
    --auth-surface: #ffffff;
    --auth-soft: #eef6ff;
    --auth-focus-border: #7798d0;
    --auth-focus-ring: rgba(50, 100, 180, .14);
}

body.auth-page {
    align-items: stretch;
    display: block;
    min-height: 100vh;
    padding: 30px;
    background: #fff;
    color: var(--auth-ink);
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 530px;
    gap: clamp(28px, 5vw, 72px);
    max-width: 1180px;
    min-height: calc(100vh - 60px);
    margin: 0 auto;
    align-items: center;
    justify-content: start;
}

.auth-brand-panel {
    display: flex;
    min-height: 500px;
    flex-direction: column;
    padding: 28px 24px 20px;
    border: 1px solid #d9eaff;
    border-radius: 10px;
    background: rgba(245, 251, 255, .76);
    box-shadow: 0 16px 45px rgba(28, 102, 179, .04);
}

.auth-brand { display: flex; align-items: center; gap: 13px; }
.auth-brand img { width: 56px; height: 56px; }
.auth-brand strong { display: block; font-size: 1.25rem; line-height: 1.15; color: #071c55; }
.auth-brand p, .brand-copyright { margin: 3px 0 0; color: var(--auth-muted); font-size: .86rem; line-height: 1.35; }
.auth-brand p { white-space: pre-line; }
.auth-benefits { display: grid; gap: 24px; margin: 42px 0 0; padding: 0; list-style: none; }
.auth-benefits li { display: flex; align-items: center; gap: 14px; }
.benefit-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; }
.benefit-icon img { display: block; width: 48px; height: 48px; }
.auth-benefits strong, .auth-benefits small { display: block; }
.auth-benefits strong { color: #10245b; font-size: .92rem; }
.auth-benefits small { margin-top: 4px; color: var(--auth-muted); font-size: .82rem; line-height: 1.35; }
.brand-copyright { margin-top: auto; }

.auth-content { width: 530px; min-width: 0; justify-self: start; }
.auth-language { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: 0 8px 12px; color: #3b4671; font-size: .82rem; font-weight: 700; }
.auth-language img { display: block; width: 17px; height: 17px; }
.auth-language img:last-child { width: 13px; height: 13px; }
.auth-language select { appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; padding: 3px 0; min-width: 82px; }
.auth-language select:focus-visible { outline: 2px solid var(--auth-focus-border); outline-offset: 3px; border-radius: 3px; }
.auth-language select:disabled { cursor: wait; opacity: .65; }
.login-container {
    box-sizing: border-box; width: 530px; min-height: 572px; max-width: 530px; margin: 0; padding: 26px;
    overflow: visible; border: 1px solid #dce9f8; border-radius: 10px;
    box-shadow: 0 14px 42px rgba(27, 66, 137, .08);
}
.login-container::before { display: none; }
.login-container:hover { box-shadow: 0 14px 42px rgba(27, 66, 137, .08); }
.auth-intro h1, .mfa-view h1 { margin: 0; color: #09194d; text-align: left; font-size: clamp(1.45rem, 3vw, 1.8rem); line-height: 1.2; }
.auth-intro > p, .mfa-lead { margin: 6px 0 18px; color: var(--auth-muted); font-size: .93rem; line-height: 1.4; }
.auth-form .form-group { margin-bottom: 14px; }
.auth-form label { margin-bottom: 6px; color: #10245b; font-size: .84rem; font-weight: 700; }
.auth-form input { min-height: 42px; border-color: #c6daf7; border-radius: 7px; background: #fff; color: #10245b; }
.auth-form input:focus { border-color: var(--auth-focus-border); box-shadow: 0 0 0 2px var(--auth-focus-ring); }
.input-with-icon .input-icon { position: absolute; z-index: 1; top: 36px; left: 13px; color: #425582; }
.input-with-icon .input-icon img { display: block; width: 18px; height: 18px; }
.input-with-icon input { padding-left: 38px; }
.auth-form .password-toggle { top: 35px; right: 8px; width: 32px; height: 32px; margin: 0; padding: 0; color: #425582; font-size: .95rem; }
.auth-form .password-toggle img { display: block; width: 20px; height: 20px; }
.auth-form .password-toggle:hover { color: var(--auth-blue); }
.remember-me { align-items: flex-start; gap: 10px; margin-top: 12px; }
.remember-checkbox { position: relative; display: block; width: 21px; height: 21px; flex: 0 0 21px; margin-top: 1px; }
.remember-checkbox input[type="checkbox"] { position: absolute; z-index: 2; inset: 0; width: 21px; height: 21px; margin: 0; opacity: 0 !important; cursor: pointer; }
.remember-checkbox img { display: block; width: 21px; height: 21px; }
.remember-checkbox__check { position: absolute; inset: 0; display: grid; place-items: center; color: var(--auth-blue); font-size: 14px; font-weight: 800; opacity: 0; }
.remember-checkbox input[type="checkbox"]:checked ~ .remember-checkbox__check { opacity: 1; }
.remember-checkbox input[type="checkbox"]:focus-visible ~ img { border-radius: 4px; outline: 2px solid var(--auth-focus-border); outline-offset: 2px; }
.remember-me label { color: #10245b; font-size: .83rem; line-height: 1.25; }
.remember-me label small { display: block; margin-top: 3px; color: var(--auth-muted); font-size: .76rem; font-weight: 400; }
.auth-form .primary-action { min-height: 44px; margin-top: 17px; border-radius: 7px; background: linear-gradient(90deg, #0877fb, #0964eb); box-shadow: 0 5px 12px rgba(8, 104, 245, .18); }
.auth-form .primary-action img { width: 18px; height: 18px; }
.auth-form .primary-action:hover { background: linear-gradient(90deg, #0868e0, #0756c9); }
.info-message { margin-bottom: 14px; border-color: #d3e4fa; background: #edf6ff; }
.info-icon { display: grid; width: 21px; height: 21px; place-items: center; color: var(--auth-blue); }
.info-icon img { display: block; width: 21px; height: 21px; }
.login-additional-confirmation { display: flex; gap: 10px; margin-top: 20px; padding: 12px 14px; border: 1px solid #d1e4fa; border-radius: 7px; background: #edf6ff; color: #294a7d; font-size: .78rem; line-height: 1.35; }
.login-additional-confirmation img { width: 24px; height: 24px; flex: 0 0 24px; }
.login-additional-confirmation h2 { margin: 0 0 3px; color: #10245b; font-size: .84rem; line-height: 1.25; }
.login-additional-confirmation p { margin: 0; }
.form-footer { margin-top: 14px; }
.form-footer a { color: var(--auth-blue); font-size: .82rem; font-weight: 700; }
.auth-footer { display: flex; justify-content: flex-end; gap: 30px; margin: 12px 12px 0; }
.auth-footer a { color: var(--auth-muted); font-size: .72rem; text-decoration: none; }
.auth-footer a:hover { color: var(--auth-blue); text-decoration: underline; }

.mfa-view > h1 { margin-top: 7px; }
.back-action, .mfa-account-context button, .recovery-entry button {
    width: auto; margin: 0; padding: 0; border: 0; background: transparent; color: var(--auth-blue); font: inherit; font-weight: 700; box-shadow: none;
}
.back-action { margin-bottom: 7px; font-size: .81rem; }
.back-action img { display: inline-block; width: 17px; height: 17px; margin-right: 6px; vertical-align: -4px; }
.auth-page button { -webkit-user-select: none; user-select: none; }
.back-action:hover { border-radius: 5px; background: #eef4fc; color: #24579f; }
.back-action:focus-visible, .mfa-account-context button:focus-visible, .recovery-entry button:focus-visible { border-radius: 5px; outline: 2px solid var(--auth-focus-border); outline-offset: 3px; }
.auth-page ::selection { background: #dce8fa; color: #10245b; }
.mfa-account-context { display: flex; align-items: center; gap: 10px; margin: 14px 0; padding: 9px 12px; border: 1px solid #d7e7f9; border-radius: 7px; background: #f7fbff; color: var(--auth-muted); font-size: .75rem; }
.mfa-account-context > span:first-child { display: grid; width: 29px; height: 29px; place-items: center; }
.mfa-account-context > span:first-child img { display: block; width: 29px; height: 29px; }
.mfa-account-context span:nth-child(2) { display: grid; gap: 2px; }
.mfa-account-context strong { color: #10245b; font-size: .82rem; }
.mfa-account-context button { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #1663fd; font-size: .75rem; white-space: nowrap; }
.mfa-account-context button img { width: 17px; height: 17px; }
.mfa-method-card { position: relative; display: flex; width: 100%; min-height: 66px; align-items: center; gap: 13px; margin: 10px 0 0; padding: 13px 38px 13px 15px; border: 1px solid #d2e1f6; border-radius: 8px; background: #fff; color: #10245b; text-align: left; box-shadow: none; }
.mfa-method-card:hover { border-color: var(--auth-blue); background: #f7fbff; }
.mfa-method-primary { margin-top: 8px; border: 2px solid #6da8ff; background: linear-gradient(90deg, #fff, #f0f7ff); }
.method-icon { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 8px; color: var(--auth-blue); }
.method-icon img { display: block; width: 36px; height: 36px; }
.method-copy { display: grid; gap: 4px; }
.method-copy strong { color: #10245b; font-size: .89rem; }
.method-copy small { color: var(--auth-muted); font-size: .75rem; line-height: 1.25; }
.method-arrow { position: absolute; right: 14px; color: #364478; }
.method-arrow img { display: block; width: 21px; height: 21px; }
.method-tag { position: absolute; top: 5px; left: 15px; padding: 2px 8px; border-radius: 12px; background: #cff4de; color: #17733a; font-size: .67rem; font-weight: 700; }
.mfa-method-primary .method-icon, .mfa-method-primary .method-copy { margin-top: 10px; }
.recovery-entry { margin-top: 16px; padding: 15px 4px 0; border-top: 1px solid #dce7f5; }
.recovery-entry p { margin: 0 0 7px; color: #4e6088; font-size: .81rem; }
.recovery-entry button { display: inline-flex; align-items: center; gap: 7px; color: #0870ed; font-size: .83rem; }
.recovery-entry button img { width: 20px; height: 20px; }
.recovery-entry small { display: block; margin: 5px 0 0 20px; color: var(--auth-muted); font-size: .74rem; }
.code-input { letter-spacing: .2em; text-align: center; font-size: 1.55rem; font-variant-numeric: tabular-nums; }
.mfa-code-input-icon { position: absolute; z-index: 1; top: 36px; left: 14px; color: var(--auth-blue); }
.mfa-code-input-icon img { width: 25px; height: 25px; }
.mfa-code-input-icon .recovery-icon { display: none; }
#mfaCodeInputGroup .code-input { padding-left: 48px; }
#mfaCodeInputGroup.mfa-code-input-group--recovery .totp-icon { display: none; }
#mfaCodeInputGroup.mfa-code-input-group--recovery .recovery-icon { display: block; }
.code-input.recovery-code-input { letter-spacing: normal; text-align: left; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1rem; }
#mfaCodeHelp { display: block; margin-top: 6px; color: var(--auth-muted); font-size: .74rem; line-height: 1.35; }
.mfa-info, .mfa-warning { display: flex; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid #d1e4fa; border-radius: 7px; background: #edf6ff; color: #294a7d; font-size: .78rem; line-height: 1.35; }
.notice-icon { width: 24px; height: 24px; flex: 0 0 24px; color: var(--auth-blue); }
.mfa-info strong, .mfa-warning strong { display: block; margin-bottom: 4px; color: #10245b; }
.mfa-info p, .mfa-info ul, .mfa-warning ul { margin: 3px 0 0 16px; padding: 0; }
.mfa-warning { border-color: #f9dca0; background: #fff8e8; color: #765123; }
.mfa-warning strong { color: #8b4c00; }
.mfa-warning .notice-icon { color: #fe9e0a; }

/* Editable security fields must remain usable with paste, selection and a visible caret. */
.auth-form input, .auth-form textarea { user-select: text; caret-color: auto; }

@media (max-width: 780px) {
    body.auth-page { padding: 16px; }
    .auth-layout { display: block; min-height: auto; }
    .auth-brand-panel { display: none; }
    .auth-content { width: 100%; max-width: 640px; margin: 0 auto; }
    .login-container { width: 100%; max-width: none; }
}

@media (max-width: 480px) {
    body.auth-page { padding: 0; }
    .auth-language { margin: 14px 18px 10px; }
    .login-container { padding: 22px 18px; border-width: 1px 0; border-radius: 0; box-shadow: none; }
    .auth-footer { justify-content: center; gap: 16px; margin: 14px 10px; flex-wrap: wrap; }
    .mfa-account-context { align-items: flex-start; }
    .mfa-account-context button { padding-top: 3px; }
}
