:root {
    --color-cream: #F4EEE5;
    --color-green-dark: #1a5c3e;
    --color-green-light: #2d8659;
    --color-green-lighter: #40b973;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--color-cream);
    min-height: 100vh;
}

.login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    gap: 0;
}

/* Left Banner Section with Big SVG Vector Illustration */
.login-banner {
    position: relative;
    overflow: hidden;
    background: radial-gradient(130% 120% at 20% 15%, #0F3F2D 0%, #0A2E1D 45%, #051910 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 48px;
    color: #FFFFFF;
}

.login-banner::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.login-banner::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(64, 185, 115, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.banner-inner {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    margin: 0 auto;
}

.banner-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    width: fit-content;
}

.banner-logo .logo-img {
    height: 38px;
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.banner-logo:hover .logo-img {
    transform: scale(1.03);
}

.banner-illustration-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 0;
}

.banner-svg-illustration {
    width: 100%;
    max-width: 380px;
    max-height: 340px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-svg-illustration:hover {
    transform: translateY(-4px) scale(1.02);
}

.banner-content {
    position: relative;
    z-index: 10;
    text-align: left;
    color: white;
    max-width: 100%;
}

.banner-title {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.25;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.banner-subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
    margin-bottom: 20px;
    max-width: 420px;
}

.banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.banner-feature {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.banner-feature i {
    font-size: 16px;
    color: #34D399;
}

/* Mobile logo in form header */
.mobile-logo-header {
    display: none;
    text-align: center;
    margin-bottom: 24px;
}

.mobile-logo-header .logo-img-mobile {
    height: 38px;
    width: auto;
    object-fit: contain;
}

/* Right Form Section */
.login-form-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background-color: white;
}

.login-form-container {
    width: 100%;
    max-width: 420px;
}

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

.form-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: var(--color-green-dark);
    margin-bottom: 8px;
}

.form-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e0d5c7;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--color-green-dark);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 92, 62, 0.1);
}

.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 38px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    font-size: 20px;
}

.password-toggle:hover {
    color: var(--color-green-dark);
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.remember-me label {
    margin: 0;
    cursor: pointer;
    color: #666;
    font-weight: 500;
}

.forgot-password {
    color: var(--color-green-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--color-green-light);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--color-green-dark);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    background: var(--color-green-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(26, 92, 62, 0.2);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #999;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0d5c7;
}

.divider span {
    margin: 0 12px;
    font-size: 14px;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.social-btn {
    padding: 10px;
    border: 2px solid #e0d5c7;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 14px;
}

.social-btn:hover {
    border-color: var(--color-green-dark);
    background: rgba(26, 92, 62, 0.05);
}

.signup-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.signup-link a {
    color: var(--color-green-dark);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.signup-link a:hover {
    color: var(--color-green-light);
}

.error-message {
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 12px;
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    border-radius: 4px;
    display: none;
    animation: slideDown 0.3s ease;
}

.error-message.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Messages/Alerts */
.messages {
    margin-bottom: 20px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-info {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

.alert-error, .alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .login-wrapper {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .login-banner {
        display: none;
    }

    .mobile-logo-header {
        display: block;
    }

    .login-form-wrapper {
        min-height: 100vh;
        padding: 32px 20px;
    }

    .login-form-container {
        max-width: 440px;
        margin: 0 auto;
    }

    .form-header h1 {
        font-size: 28px;
    }
}
