/* Auth Pages CSS */
:root {
    --primary-color: #2E7D32;
    --primary-hover: #1B5E20;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--white);
    height: 100vh;
    display: flex;
    overflow: hidden;
    /* Avoid scroll on full desktop */
}

/* Split Layout */
.auth-container {
    display: flex;
    width: 100%;
    height: 100%;
}

/* Left Side - Image/Brand */
.auth-brand {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color) 0%, #145A32 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.auth-brand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1625246333195-58197ebd0031?q=80&w=2670&auto=format&fit=crop');
    /* Agro Background */
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    /* Subtle blend */
}

.brand-content {
    position: relative;
    z-index: 10;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.brand-logo span {
    color: #81C784;
    /* Lighter green for contrast */
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.brand-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 80%;
}

.quote {
    font-style: italic;
    opacity: 0.8;
}

/* Right Side - Form */
.auth-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--white);
    overflow-y: auto;
    /* Scroll if form is long */
}

.auth-form-box {
    width: 100%;
    max-width: 480px;
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.2s;
    background-color: #FAFAFA;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    background-color: white;
}

.btn-primary {
    width: 100%;
    padding: 0.875rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.alert-error,
.alert-danger {
    background-color: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    body {
        height: auto;
        overflow: auto;
    }

    .auth-container {
        flex-direction: column;
    }

    .auth-brand {
        padding: 3rem 2rem;
        min-height: 250px;
    }

    .brand-text h1 {
        font-size: 2rem;
    }

    .brand-text p {
        display: none;
        /* Simplify on mobile */
    }

    .quote {
        display: none;
    }

    .auth-form-container {
        padding: 3rem 1.5rem;
    }
}