﻿/* --- THEME VARIABLES --- */
:root {
    --kk-gold: #D4AF37;
    --kk-gold-hover: #b5952f;
    --kk-text-dark: #1a1a1a;
    --kk-text-muted: #666666;
    --kk-bg-light: #ffffff;
    --kk-bg-gray: #f8f9fa;
    --kk-border: #e0e0e0;
    --kk-success: #27ae60;
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--kk-bg-gray);
    overflow: hidden;
}

/* --- LAYOUT --- */
.kk-login-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

.kk-brand-side {
    flex: 1;
    background: #1a1a1a url('https://images.unsplash.com/photo-1618220179428-22790b461013?q=80&w=2500&auto=format&fit=crop') center/cover;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    padding: 4rem;
}

    .kk-brand-side::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(212, 175, 55, 0.25) 100%);
    }

.kk-brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.kk-brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    margin: 0;
    color: var(--kk-gold);
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.kk-brand-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.kk-form-side {
    width: 550px;
    background: var(--kk-bg-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    position: relative;
    overflow-y: auto;
}

.kk-logo-area {
    text-align: center;
    margin-bottom: 2rem;
}

.kk-logo-img {
    width: 80px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

/* --- FORMS --- */
.kk-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--kk-text-dark);
    margin: 0;
    text-align: center;
}

.kk-subtitle {
    color: var(--kk-text-muted);
    margin-top: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 2rem;
}

.kk-input-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.kk-label {
    display: block;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--kk-text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.kk-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.kk-input {
    width: 100%;
    padding: 14px;
    padding-right: 45px;
    border: 1px solid var(--kk-border);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    background: var(--kk-bg-gray);
    color: var(--kk-text-dark);
    transition: 0.2s;
}

    .kk-input:focus {
        outline: none;
        border-color: var(--kk-gold);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    }

.kk-eye-btn {
    position: absolute;
    right: 14px;
    cursor: pointer;
    color: var(--kk-text-muted);
    font-size: 1rem;
    background: none;
    border: none;
    padding: 0;
    z-index: 10;
}

    .kk-eye-btn:hover {
        color: var(--kk-gold);
    }

.kk-btn-gold {
    width: 100%;
    padding: 14px;
    background: var(--kk-gold);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}

    .kk-btn-gold:hover {
        background: var(--kk-gold-hover);
        transform: translateY(-2px);
    }

.kk-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    margin-top: 15px;
}

.kk-link {
    color: var(--kk-text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
}

    .kk-link:hover {
        color: var(--kk-gold);
    }

.kk-login-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--kk-border);
}

.kk-login-tab {
    padding-bottom: 10px;
    cursor: pointer;
    color: var(--kk-text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

    .kk-login-tab.active {
        color: var(--kk-gold);
        border-bottom-color: var(--kk-gold);
    }

.form-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

    .form-panel.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- OTP MODAL --- */
.kk-otp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

    .kk-otp-overlay.show {
        display: flex;
        animation: fadeIn 0.2s;
    }

.kk-otp-box {
    background: #fff;
    width: 400px;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    text-align: center;
    position: relative;
}

.kk-otp-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: var(--kk-text-dark);
}

.kk-otp-desc {
    font-size: 0.9rem;
    color: var(--kk-text-muted);
    margin-bottom: 1.5rem;
}

.kk-otp-input {
    width: 100%;
    font-size: 1.5rem;
    letter-spacing: 10px;
    text-align: center;
    padding: 10px;
    border: 1px solid var(--kk-border);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-family: 'Inter', monospace;
}

.kk-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: var(--kk-text-muted);
    font-size: 1.2rem;
    background: none;
    border: none;
}

@media (max-width: 900px) {
    body, html {
        overflow: auto;
    }

    .kk-brand-side {
        display: none;
    }

    .kk-form-side {
        width: 100%;
        padding: 2rem;
    }
}
