/* Google Fonts */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
:root {
    --primary-color: #086918;
    --primary-dark: #064b11;
    --secondary-color: #fbff00;
    --text-color: #333;
    --bg-light: #f4f7f6;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    height: 100vh;
    margin: 0;
    overflow: hidden;
    /* Prevent scrolling for split screen */
}


/* Main Container */

.auth-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
}


/* Left Side - Promotional/Image */

.auth-promo {
    width: 50%;
    background: linear-gradient(135deg, rgba(8, 105, 24, 0.9), rgba(6, 75, 17, 0.8)), url('../img/events-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    padding: 2rem;
    transition: all 0.5s ease;
}

.auth-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/cubes.png');
    /* Subtle pattern overlay */
    opacity: 0.1;
}

.promo-content {
    z-index: 2;
    animation: fadeInUp 1s ease;
}

.promo-logo {
    width: 120px;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 15px;
    backdrop-filter: blur(5px);
}

.promo-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-text {
    font-size: 1.2rem;
    max-width: 80%;
    margin: 0 auto;
    opacity: 0.9;
}


/* Right Side - Forms */

.auth-forms {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    position: relative;
    padding: 2rem;
    overflow-y: auto;
    /* Allow scrolling if form is tall */
}

.form-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    transition: all 0.4s ease-in-out;
}

.auth-header {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-header h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2rem;
}

.auth-header p {
    color: #777;
    margin-top: 0.5rem;
}


/* Floating Input Styles */

.form-floating {
    margin-bottom: 1.2rem;
}

.form-control {
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    padding: 1rem 1rem;
    height: calc(3.5rem + 2px);
    font-size: 1rem;
    background: #f9f9f9;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(8, 105, 24, 0.1);
    background: var(--white);
}

.form-floating label {
    padding: 1rem 1rem;
    color: #888;
}


/* Buttons */

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 5px 15px rgba(8, 105, 24, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 105, 24, 0.4);
    background: linear-gradient(to right, #0a8a1f, #075c15);
}

.btn-primary:active {
    transform: translateY(0);
}


/* Links and Switching */

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}


/* Social Login */

.social-login {
    margin: 1.5rem 0;
    position: relative;
    text-align: center;
}

.social-login::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e1e1;
    z-index: 0;
}

.social-label {
    background: var(--white);
    padding: 0 10px;
    position: relative;
    z-index: 1;
    color: #888;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #eee;
    color: #555;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 1.2rem;
}

.social-btn:hover {
    background: #f4f4f4;
    border-color: #ddd;
    color: var(--primary-color);
    transform: scale(1.1);
}


/* Responsive */

@media (max-width: 992px) {
    .auth-promo {
        display: none;
        /* Hide image on tablets */
    }
    .auth-forms {
        width: 100%;
        background: url('../img/events-bg.jpg');
        background-size: cover;
        background-position: center;
    }
    .auth-forms::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    .form-container {
        position: relative;
        z-index: 2;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 20px;
        padding: 2.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: 1.5rem;
        width: 90%;
    }
    .auth-header h2 {
        font-size: 1.8rem;
    }
}


/* Animations */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}