/* Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

:root {
    --primary-green: #004d25;
    /* PMLN Deep Green */
    --primary-gold: #d4af37;
    /* Metallic Gold */
    --primary-black: #1a1a1a;
    --primary-white: #FFFFFF;
    --accent-cream: #F9F7F2;
    --border-color: #E0E0E0;
    --text-dark: #333333;
    --shadow-md: 0 10px 30px rgba(0, 77, 37, 0.15);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-gold) #f1f1f1;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--accent-cream);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Split Layout */
.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    /* Hide overflow during animation */
}

/* --- LEFT PANEL (Info) --- */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-green) 0%, #002914 100%);
    color: var(--primary-gold);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center Content */
    position: relative;
    overflow: hidden;
    text-align: center;

    /* Animation: Slide IN from LEFT */
    transform: translateX(-100%);
    animation: slideInLeft 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    z-index: 5;
}

/* Background Sketch Watermark */
.left-panel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: url('../images/mn_sketch_v2.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.15;
    /* Subtle blend */
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

/* Content z-index fix */
.left-panel>* {
    position: relative;
    z-index: 2;
}

.branding {
    margin-bottom: 2rem;
}

/* Logo Circle */
.logo-placeholder {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 3px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.logo-placeholder img {
    width: 80%;
    height: 80%;
    object-fit: contain;
}

.app-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: var(--primary-white);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.auth-details {
    font-size: 0.9rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.5);
    border-bottom: 1px solid rgba(212, 175, 55, 0.5);
    padding: 10px 0;
    font-weight: 600;
    display: inline-block;
}

.features-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.features-list i {
    color: var(--primary-gold) !important;
}

/* --- RIGHT PANEL (Login Form) --- */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--primary-white);
    padding: 2rem;
    position: relative;
    z-index: 10;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.1);

    /* Animation: Slide IN from RIGHT */
    transform: translateX(100%);
    animation: slideInRight 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    /* Slight delay so left panel starts first? No, simltaneous looks cool */
}

.login-box {
    width: 100%;
    max-width: 400px;
    padding: 2.5rem;
    background-color: var(--primary-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    text-align: center;
}

/* Wider box for Registration */
.register-box {
    width: 100%;
    max-width: 800px;
    /* Reduced vertical height by widening */
    padding: 2.5rem;
    background-color: var(--primary-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    text-align: center;
}

/* Wider box for Registration */
.register-box {
    width: 100%;
    max-width: 800px;
    /* Reduced vertical height by widening */
    padding: 2.5rem;
    background-color: var(--primary-white);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    text-align: center;
}

.login-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    font-family: 'Playfair Display', serif;
}

/* Floating Label Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1rem 0.5rem 1rem;
    /* Top padding for label space */
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: transparent;
    /* Transparent for label overlap */
    transition: all 0.3s;
    height: 50px;
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 4px rgba(0, 77, 37, 0.1);
    outline: none;
}

/* The Label - FIXED above input */
.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Optional: Floating Action for special cases */
.form-group.floating label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    background-color: var(--primary-white);
    padding: 0 5px;
    color: #999;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.2s ease-in-out;
    pointer-events: none;
    border-radius: 4px;
    margin-bottom: 0;
}

.form-group.floating .form-control:focus+label,
.form-group.floating .form-control:not(:placeholder-shown)+label,
.form-group.floating .form-control[value]:not([value=""])+label {
    top: 0;
    font-size: 0.8rem;
    color: var(--primary-green);
    font-weight: 600;
    z-index: 5;
}

.btn-black {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-black:hover {
    background-color: #003319;
    box-shadow: 0 5px 15px rgba(0, 77, 37, 0.3);
    transform: translateY(-2px);
}

/* Animations Keyframes */
@keyframes slideInLeft {
    to {
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        display: block;
        overflow-y: auto;
    }

    .left-panel {
        display: none !important;
        /* Hide left panel on mobile as requested previously, or keep it? Standard is hide to focus on login */
    }

    .right-panel {
        width: 100%;
        min-height: 100vh;
        padding: 1.5rem;
        transform: translateY(20px);
        /* Simple fade up for mobile */
        animation: fadeUpMobile 0.8s forwards;
    }

    .login-box {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}

@keyframes fadeUpMobile {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}