@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Restored Brand Gold & Premium Slate */
    --p-gold-500: #D7AC2A;
    --p-gold-400: #F0C84A;
    --p-gold-600: #A58B00;
    --p-slate-900: #1A1510;
    --p-slate-700: #3D3528;
    
    /* Luxury Accents */
    --accent-gold: #d4af37;
    --accent-gold-dark: #b8962e;
    --accent-gold-soft: rgba(212, 175, 55, 0.15);
    
    /* Backgrounds */
    --bg-main: #FFFFFF;
    --bg-luxury-gradient: linear-gradient(135deg, #f8f6f2 0%, #eef1f5 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.4);
    
    /* Text */
    --text-primary: #1A1510;
    --text-secondary: #64748b;
    --border-color: #E2E8F0;
    
    /* Shadows */
    --shadow-premium: 
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 20px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-gold: 0 8px 20px rgba(212, 175, 55, 0.25);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* --- Layout --- */
.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* --- Left Panel: Hero Section (Collage) --- */
.hero-section {
    position: relative;
    width: 60%;
    height: 100%;
    overflow: hidden;
    background-color: var(--p-slate-900); /* Neutral brand slate */
}

.hero-collage {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 15px;
    padding: 30px;
    transition: var(--transition-smooth);
}

.collage-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: floating 12s ease-in-out infinite;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collage-item:nth-child(1) { grid-area: 1 / 1 / 3 / 3; animation-delay: 0s; }
.collage-item:nth-child(2) { grid-area: 1 / 3 / 3 / 5; animation-delay: 1s; }
.collage-item:nth-child(3) { grid-area: 1 / 5 / 4 / 7; animation-delay: 2s; }
.collage-item:nth-child(4) { grid-area: 3 / 1 / 5 / 3; animation-delay: 1.5s; }
.collage-item:nth-child(5) { grid-area: 3 / 3 / 6 / 5; animation-delay: 0.5s; }
.collage-item:nth-child(6) { grid-area: 4 / 5 / 7 / 7; animation-delay: 2.5s; }
.collage-item:nth-child(7) { grid-area: 5 / 1 / 7 / 3; animation-delay: 3s; }
.collage-item:nth-child(8) { grid-area: 6 / 3 / 7 / 5; animation-delay: 0.8s; }

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(0.5deg); }
    66% { transform: translateY(6px) rotate(-0.5deg); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 21, 16, 0.85) 0%, rgba(26, 21, 16, 0.5) 60%, rgba(215, 172, 42, 0.15) 100%);
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px;
    color: white;
}

.hero-badge {
    display: inline-flex;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    width: fit-content;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 44px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* --- Right Panel: Form Section (Design Match) --- */
.form-section {
    position: relative;
    width: 40%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--bg-luxury-gradient);
    z-index: 20;
    overflow: hidden;
}

/* Background Decorative Elements */
.bg-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-gold-soft) 0%, rgba(212, 175, 55, 0) 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(60px);
    opacity: 0.6;
}

.bg-glow-1 { top: -100px; right: -100px; }
.bg-glow-2 { bottom: -100px; left: -100px; }

.form-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 28px 40px;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-premium);
    z-index: 10;
}

.accent-bar {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-dark));
    margin-bottom: 18px;
    border-radius: 10px;
}

.form-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.form-logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
    transition: var(--transition-smooth);
}

.form-logo img:hover {
    transform: scale(1.05);
}

.form-header {
    margin-bottom: 18px;
}

.form-badge {
    display: inline-block;
    padding: 5px 10px;
    background: var(--accent-gold-soft);
    color: var(--accent-gold-dark);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    border-radius: 6px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.form-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--p-slate-900);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.form-header h1 em {
    font-style: italic;
    color: var(--p-gold-500);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.input-container {
    position: relative;
    height: 54px;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #94a3b8;
    transition: var(--transition-smooth);
    z-index: 2;
}

.form-input {
    width: 100%;
    height: 100%;
    padding: 0 16px 0 54px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    font-size: 15px;
    color: var(--p-slate-900);
    background: rgba(255, 255, 255, 0.5);
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: white;
    box-shadow: 0 0 0 4px var(--accent-gold-soft);
}

.form-input:focus + .input-icon {
    color: var(--accent-gold);
}



/* Button */
.btn-primary {
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-smooth);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(1px);
}



/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .form-card { padding: 40px; }
}

@media (max-width: 1024px) {
    .hero-section { width: 45%; }
    .form-section { width: 55%; }
}

@media (max-width: 868px) {
    body { overflow-y: auto; height: auto; }
    .login-container { flex-direction: column; height: auto; min-height: 100vh; }
    .hero-section { width: 100%; height: 400px; order: 2; }
    .hero-content { padding: 40px; }
    .form-section { width: 100%; padding: 60px 20px; order: 1; }
    .form-card { padding: 40px 30px; border-radius: 24px; }
    .bg-glow { width: 300px; height: 300px; }
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-entrance {
    animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
