* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --login-primary: rgb(34, 197, 94);
    --login-dark: rgb(22, 163, 74);
    --login-light: rgb(187, 247, 208);
    --login-accent: rgb(74, 222, 128);
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --shadow: rgba(34, 197, 94, 0.15);
}

body {
    background: linear-gradient(135deg, rgb(34, 197, 94) 0%, rgb(22, 163, 74) 100%);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

/* Main Login Card */
.login-wrapper {
    display: flex;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 1000px;
    width: 100%;
    min-height: 600px;
}

/* Left side - Image/Branding */
.login-brand-section {
    flex: 1;
    background: linear-gradient(135deg, var(--login-primary) 0%, var(--login-dark) 100%);
    color: white;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.login-brand-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-brand-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

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

.brand-logo {
    font-size: 48px;
    margin-bottom: 20px;
}

.brand-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.brand-subtitle {
    font-size: 18px;
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 30px;
}

.brand-features {
    list-style: none;
    text-align: left;
    margin-top: 40px;
}

.brand-feature {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.brand-feature i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--login-light);
}

.brand-feature-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.brand-feature-text p {
    font-size: 14px;
    opacity: 0.8;
}

/* Right side - Login Form */
.login-form-section {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 40px;
}

.login-header h1 {
    font-size: 32px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.login-header p {
    color: var(--text-light);
    font-size: 16px;
}

.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    font-size: 15px;
    animation: slideDown 0.3s ease;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert i {
    margin-right: 10px;
}

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

.login-form {
    display: block;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 18px;
}

.form-control {
    width: 100%;
    padding: 15px 16px 15px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: var(--bg-light);
}

.form-control:focus {
    outline: none;
    border-color: var(--login-primary);
    background-color: white;
    box-shadow: 0 0 0 4px var(--shadow);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

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

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

.remember-me label {
    font-size: 14px;
    color: var(--text-dark);
    cursor: pointer;
}

.forgot-password {
    color: var(--login-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--login-dark);
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--login-primary) 0%, var(--login-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

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

.divider {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: var(--text-light);
}

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

.divider span {
    padding: 0 15px;
    font-size: 14px;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.social-btn:hover {
    border-color: var(--login-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.google-btn {
    color: #db4437;
}

.facebook-btn {
    color: #4267B2;
}

.signup-link {
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
}

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

.signup-link a:hover {
    color: var(--login-dark);
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 900px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 500px;
    }

    .login-brand-section {
        order: -1;
        padding: 40px 30px;
        min-height: auto;
    }

    .brand-features {
        display: none;
    }

    .login-form-section {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    .login-form-section {
        padding: 30px 20px;
    }

    .social-login {
        grid-template-columns: 1fr;
    }
}

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

.login-form, .login-header {
    animation: fadeInUp 0.6s ease forwards;
}

.brand-feature:nth-child(1) { animation: fadeInUp 0.6s ease 0.1s forwards; opacity: 0; }
.brand-feature:nth-child(2) { animation: fadeInUp 0.6s ease 0.2s forwards; opacity: 0; }
.brand-feature:nth-child(3) { animation: fadeInUp 0.6s ease 0.3s forwards; opacity: 0; }
