/* ========== ОСНОВНЫЕ СТИЛИ ФОРМЫ ========== */
.login-form {
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========== GRID ДЛЯ ФОРМЫ ========== */
.login-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ========== СООБЩЕНИЯ ОБ ОШИБКАХ ========== */
.invalid-feedback {
    display: block;
    color: #ff6b6b;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 5px;
    padding-left: 18px;
}

.invalid-feedback span {
    display: block;
}

/* ========== ЗАГОЛОВОК ФОРМЫ ========== */
.login-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-title i {
    color: #ffc107;
    margin-right: 10px;
}

/* ========== ПОЛЯ ВВОДА ========== */
.login-input {
    background: rgba(30, 40, 50, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #e0e0e0 !important;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 14px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 0;
}

.login-input:focus {
    background: rgba(40, 55, 70, 0.98) !important;
    border-color: #ffc107 !important;
    color: #ffffff !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.login-input::placeholder {
    color: #a0a0a0 !important;
}

/* ========== REMEMBER ME ========== */
.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
}

.remember-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #ffc107;
}

.remember-label {
    color: #e0e0e0;
    cursor: pointer;
    font-size: 14px;
    margin: 0;
}

/* ========== КНОПКИ ========== */
.btn-login {
    background: #ffc107;
    color: #1a1a2e;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    flex: 1;
}

.btn-login:hover {
    background: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.login-buttons {
    display: flex;
    gap: 15px;
    margin-top: 0;
}

/* ========== ТАБЫ ========== */
.auth-tabs {
    display: flex;
    gap: 20px;
    margin: 20px 0 25px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    position: relative;
}

.tab-btn i {
    margin-right: 8px;
}

.tab-btn:hover {
    color: #ffc107;
}

.tab-btn.active {
    color: #ffc107;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffc107;
}

/* ========== ПЕРЕКЛЮЧАТЕЛЬ РЕЖИМОВ ========== */
.mode-switch {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 5px;
}

.mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
}

.mode-btn.active {
    background: #ffc107;
    color: #1a1a2e;
}

/* ========== TEACHER INFO ========== */
.teacher-info {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.teacher-info i {
    font-size: 48px;
    color: #ffc107;
    margin-bottom: 10px;
}

.teacher-info p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ========== ПАРОЛЬ С ГЛАЗОМ ========== */
.password-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.password-wrapper .login-input {
    padding-right: 45px;
    margin-bottom: 0;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: #ffc107;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 768px) {
    .login-form {
        margin: 20px;
        padding: 25px;
    }
    .login-buttons {
        flex-direction: column;
        gap: 10px;
    }
}