/* public/css/auth.css (Оранжево-белый Стиль, Версия 2.0) */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    /* СКОРРЕКТИРОВАННЫЙ ОРАНЖЕВЫЙ ЦВЕТ */
    --primary-color: #E95400; /* Тусклый, Темный Оранжевый */
    --primary-hover: #D04B00; /* Темнее для наведения */
    
    --background-color: #f7f9fc;
    --card-background: #ffffff;
    --border-color: #e0e0e0;
    --text-color: #333333;
    --error-color: #e91e63;
    --success-color: #4CAF50;
    --yandex-color-icon: #fc3f1d; /* Цвет иконки Яндекса */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background-color 0.3s;
}

.auth-container {
    background-color: var(--card-background);
    padding: 35px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

.brand {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
    position: relative; 
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 14px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-size: 16px;
}

input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(233, 84, 0, 0.15); /* Используем новый цвет для тени */
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 40px; 
    cursor: pointer;
    color: #999;
    font-size: 18px;
    transition: color 0.2s;
}
.toggle-password:hover {
    color: var(--primary-color);
}

.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.message.error {
    background-color: #ffebee;
    color: var(--error-color);
    border: 1px solid #ffcdd2;
}

.message.success {
    background-color: #e8f5e9;
    color: var(--success-color);
    border: 1px solid #c8e6c9;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background-color 0.3s, transform 0.1s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(233, 84, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(233, 84, 0, 0.4);
}
.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(233, 84, 0, 0.3);
}

/* --- СОВРЕМЕННАЯ КНОПКА YANDEX --- */
.btn-yandex {
    display: flex; 
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 100%;
    padding: 12px;
    background-color: var(--card-background); /* Белый фон */
    color: var(--text-color);
    border: 1px solid var(--border-color); /* Тонкий бордер */
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    margin-top: 15px;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.2s;
}

.btn-yandex i {
    color: var(--yandex-color-icon); /* Фирменный цвет иконки */
    font-size: 1.2em;
    margin-right: 10px;
}

.btn-yandex:hover {
    background-color: #f0f0f0; /* Легкий серый при наведении */
    border-color: #cccccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.link-text {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #6c757d;
}

.link-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.link-text a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}


/* --- Стили Модального Окна 2FA (2fa_setup.php) --- */

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex; justify-content: center; align-items: center; z-index: 1000;
    animation: fadeZoomIn 0.3s ease-out;
}

@keyframes fadeZoomIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.twofa-container {
    background-color: var(--card-background); 
    padding: 30px; 
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    width: 90%; 
    max-width: 450px; 
    position: relative;
    transition: transform 0.3s ease-out;
}
.twofa-container h2 { 
    text-align: left; 
    margin-top: 0; 
    margin-bottom: 25px; 
    color: var(--primary-color); 
    font-size: 24px;
    display: flex;
    align-items: center;
}
.twofa-container h2 i {
    margin-right: 10px;
    font-size: 1.2em;
}
.twofa-container .step { 
    margin-bottom: 20px; 
    font-size: 15px; 
    line-height: 1.6;
}
.twofa-container .qr-box { 
    background-color: #f7f7f7; 
    width: 150px; 
    height: 150px; 
    margin: 20px auto; 
    border: 2px solid var(--border-color); 
    border-radius: 8px;
    display: flex; justify-content: center; align-items: center;
    font-weight: bold; color: #666; 
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.05);
}
.twofa-container .recovery-key-box {
    background-color: #212529; 
    color: #ffffff; 
    padding: 15px; 
    border-radius: 8px;
    text-align: center; 
    font-size: 1.1em; 
    font-weight: 700; 
    letter-spacing: 1px; 
    user-select: all;
    margin: 10px 0; 
    word-break: break-all;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.twofa-container .warning {
    background-color: #ffe0b2; 
    color: #e65100; 
    border-radius: 8px; 
    padding: 15px;
    margin-top: 15px; 
    font-size: 14px;
    font-weight: 500;
}
.twofa-container input[type="text"] { 
    text-align: center; 
    font-size: 1.5em;
    letter-spacing: 3px;
}
.twofa-container .close-btn { 
    position: absolute; top: 15px; right: 15px; 
    font-size: 28px; 
    cursor: pointer; 
    color: #999; 
    transition: color 0.2s;
}
.twofa-container .close-btn:hover {
    color: var(--primary-hover);
}