/* BASE & RESET */
:root {
    --primary: #D4AF37;
    /* Elegant Gold */
    --primary-glow: rgba(212, 175, 55, 0.4);
    --bg-dark: #fda900;
    --surface: #181a20;
    --surface-light: #23262f;
    --text-main: #fcfcfc;
    --text-muted: #8c909e;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
}

/* LAYOUT */
.split-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* LEFT SIDE - BRANDING */
.layout-left {
    position: relative;
    width: 55%;
    background: url('/static/images/bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.left-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 17, 21, 0.85) 0%, rgba(15, 17, 21, 0.6) 100%);
    backdrop-filter: blur(2px);
    z-index: 2;
}

/* Animated Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 3;
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: #FFD700;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.brand-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 80%;
    padding: 40px;
}

.brand-logo {
    max-width: 140px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px var(--primary-glow));
    animation: fadeInDown 1s ease-out;
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.brand-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    color: #e0e0e0;
    margin-bottom: 16px;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.brand-description {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* RIGHT SIDE - LOGIN */
.layout-right {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-dark);
}

.layout-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: var(--surface);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: slideInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.login-header p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* FLOATING LABELS FORM */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    width: 100%;
    padding: 16px 20px;
    background: var(--surface-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
}

/* Floating Label Magic */
.input-container label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    background: var(--surface-light);
    padding: 0 4px;
}

.input-container input:focus,
.input-container input:not(:placeholder-shown) {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.input-container input:focus~label,
.input-container input:not(:placeholder-shown)~label {
    top: 0;
    font-size: 0.85rem;
    color: var(--primary);
}

.input-highlight {
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.input-container input:focus~.input-highlight {
    width: calc(100% - 24px);
}

/* BUTTON */
.btn-login {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #FFD700);
    color: #111;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px var(--primary-glow);
    margin-top: 10px;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #FFD700, var(--primary));
}

.btn-login:active {
    transform: translateY(1px);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.btn-login:hover .btn-icon {
    transform: translateX(5px);
}

.login-footer {
    text-align: center;
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
    }

    .layout-left {
        width: 100%;
        height: 40vh;
    }

    .brand-content {
        padding: 20px;
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .layout-right {
        width: 100%;
        height: 60vh;
        align-items: flex-start;
        padding-top: 40px;
    }

    .layout-right::before {
        display: none;
    }

    .login-wrapper {
        border: none;
        box-shadow: none;
        background: transparent;
    }
}