/* ============================================
   Фирменный стиль L-Trans Pro - КРУПНАЯ ВЕРСИЯ
   Цвета: #1a1a1a (темный), #ff6b00 (оранжевый), #f8f9fa (серый фон)
   Эффекты: градиенты, неон, шелковистые тени
   ============================================ */

/* Общие стили страницы */
.lk-login-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
}

/* Декоративный фон */
.lk-login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, rgba(255,107,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.lk-login-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,0,0.05) 0%, rgba(255,107,0,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Карточка входа — с эффектом подъёма */
.lk-login-card {
    max-width: 580px;
    width: 100%;
    background: #ffffff;
    border-radius: 48px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.lk-login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.3);
}

/* Шапка с градиентом */
.lk-login-card__header {
    padding: 52px 52px 28px 52px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #fef9f5 100%);
    border-bottom: 2px solid #fff0e6;
}

.lk-login-card__header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.8px;
}

/* Табы */
.lk-login-tabs {
    display: flex;
    border-bottom: 2px solid #f0f2f5;
    background: #ffffff;
    padding: 0 24px;
    gap: 12px;
}

.lk-login-tab {
    flex: 1;
    padding: 22px 20px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 700;
    color: #8a99aa;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    letter-spacing: -0.2px;
}

.lk-login-tab:hover {
    color: #ff6b00;
    background: linear-gradient(180deg, transparent 0%, rgba(255,107,0,0.04) 100%);
}

.lk-login-tab--active {
    color: #ff6b00;
    background: linear-gradient(180deg, transparent 0%, rgba(255,107,0,0.06) 100%);
}

.lk-login-tab--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b00, #ff8c3e);
    border-radius: 4px 4px 0 0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Контент */
.lk-login-content {
    padding: 52px;
}

.lk-login-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.lk-login-pane--active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== СУПЕР-КРУПНЫЕ ПОЛЯ ========== */
.lk-form-group {
    margin-bottom: 32px;
}

.lk-form-group label {
    display: block;
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    color: #5a6e84;
}

/* ГЛАВНЫЙ СТИЛЬ ПОЛЕЙ — МАКСИМАЛЬНО КРУПНЫЙ */
.lk-form-control {
    width: 100%;
    padding: 20px 22px;
    font-size: 18px;
    font-weight: 600;
    font-family: inherit;
    color: #1a1a1a;
    background: #fefefe;
    border: 2px solid #e8ecf0;
    border-radius: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.lk-form-control::placeholder {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 17px;
    transition: all 0.2s;
}

/* HOVER эффект */
.lk-form-control:hover {
    border-color: #ff8c3e;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.08);
}

/* FOCUS эффект — неоновое свечение */
.lk-form-control:focus {
    outline: none;
    border-color: #ff6b00;
    background: #ffffff;
    box-shadow: 0 0 0 6px rgba(255, 107, 0, 0.15), 0 4px 20px rgba(0, 0, 0, 0.05);
    transform: scale(1.01);
}

/* Эффект при вводе текста */
.lk-form-control:not(:placeholder-shown) {
    border-color: #ff6b00;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02), 0 0 0 2px rgba(255, 107, 0, 0.05);
}

/* Поле телефона — особый стиль */
#phone-mask.lk-form-control {
    letter-spacing: 0.8px;
    font-weight: 600;
    font-size: 19px;
}

/* Поле ошибки */
.lk-form-control--error {
    border-color: #dc3545;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.lk-form-control--error:focus {
    box-shadow: 0 0 0 6px rgba(220, 53, 69, 0.12);
}

/* Чекбокс — крупный */
.lk-checkbox {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.lk-checkbox input {
    width: 22px;
    height: 22px;
    margin: 0;
    cursor: pointer;
    accent-color: #ff6b00;
    transform: scale(1.1);
    transition: transform 0.1s;
}

.lk-checkbox input:hover {
    transform: scale(1.15);
}

.lk-checkbox label {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    cursor: pointer;
    letter-spacing: -0.2px;
}

/* КНОПКИ — огромные и яркие */
.lk-btn {
    width: 100%;
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.lk-btn--primary {
    background: linear-gradient(135deg, #ff6b00 0%, #ff8c3e 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}

.lk-btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.lk-btn--primary:hover::before {
    left: 100%;
}

.lk-btn--primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff5500 0%, #ff7720 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 107, 0, 0.4);
}

.lk-btn--primary:active:not(:disabled) {
    transform: translateY(1px);
}

.lk-btn--primary:disabled {
    background: linear-gradient(135deg, #fdba74 0%, #fdba74 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lk-btn--secondary {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.lk-btn--secondary:hover:not(:disabled) {
    background: #e9eef3;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.lk-btn--secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ССЫЛКИ */
.lk-links {
    text-align: center;
    margin-top: 32px;
}

.lk-links a {
    color: #ff6b00;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
}

.lk-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #ff6b00;
    transition: width 0.2s ease;
}

.lk-links a:hover::after {
    width: 100%;
}

.lk-links a:hover {
    color: #e55a00;
}

/* СООБЩЕНИЯ */
.lk-message {
    padding: 18px 22px;
    border-radius: 24px;
    margin-bottom: 32px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    backdrop-filter: blur(4px);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lk-message--error {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 5px solid #dc2626;
    color: #991b1b;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.1);
}

.lk-message--success {
    background: linear-gradient(135deg, #f0fdf4 0%, #e6f9ec 100%);
    border-left: 5px solid #16a34a;
    color: #166534;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
}

/* БЛОК SMS */
.lk-sms-verify {
    margin-top: 32px;
    animation: fadeIn 0.4s ease;
}

/* ПОДСКАЗКА */
.lk-form-hint {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 10px;
    letter-spacing: -0.2px;
    transition: color 0.2s;
}

.lk-form-group:focus-within .lk-form-hint {
    color: #ff6b00;
}

/* ТАЙМЕР — крупный и заметный */
.lk-timer {
    display: inline-block;
    font-weight: 800;
    color: #ff6b00;
    font-size: 20px;
    min-width: 45px;
    text-shadow: 0 0 5px rgba(255, 107, 0, 0.3);
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}

/* ПОЛЕ ДЛЯ КОДА — супер-крупное */
#sms-verify-form input[name="sms_code"] {
    text-align: center;
    letter-spacing: 12px;
    font-size: 28px;
    font-weight: 800;
    padding: 24px 22px;
    border-radius: 28px;
    background: #fefefe;
    font-family: 'Courier New', 'SF Mono', monospace;
}

#sms-verify-form input[name="sms_code"]:focus {
    letter-spacing: 12px;
}

/* Адаптивность */
@media (max-width: 640px) {
    .lk-login-card {
        max-width: 95%;
        border-radius: 32px;
    }
    
    .lk-login-card__header {
        padding: 36px 28px 20px 28px;
    }
    
    .lk-login-card__header h1 {
        font-size: 28px;
    }
    
    .lk-login-content {
        padding: 32px 28px;
    }
    
    .lk-login-tabs {
        padding: 0 16px;
        gap: 8px;
    }
    
    .lk-login-tab {
        padding: 16px 12px;
        font-size: 15px;
    }
    
    .lk-form-control {
        padding: 16px 18px;
        font-size: 16px;
        border-radius: 24px;
    }
    
    .lk-btn {
        padding: 16px 20px;
        font-size: 16px;
        border-radius: 32px;
    }
    
    .lk-login-content {
        padding: 28px 24px;
    }
    
    #sms-verify-form input[name="sms_code"] {
        letter-spacing: 6px;
        font-size: 22px;
        padding: 18px 16px;
    }
}

@media (max-width: 480px) {
    .lk-login-card__header h1 {
        font-size: 24px;
    }
    
    .lk-form-control {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    #sms-verify-form input[name="sms_code"] {
        letter-spacing: 4px;
        font-size: 20px;
        padding: 16px 14px;
    }
}

/* АВТОЗАПОЛНЕНИЕ — стили для сохранения внешнего вида */
.lk-form-control:-webkit-autofill,
.lk-form-control:-webkit-autofill:hover,
.lk-form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset;
    box-shadow: 0 0 0px 1000px white inset;
    border-color: #ff6b00;
    border-radius: 28px;
}

/* Риппл-эффект на кнопках (волна при клике) */
.lk-btn {
    position: relative;
    overflow: hidden;
}

.lk-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Анимация успешной отправки */
@keyframes checkmark {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}