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

:root {
    --primary: #00897b;
    --primary-dark: #00695c;
    --primary-light: #26a69a;
    --accent: #b8860b;
    --dark: #1a1a1a;
    --gray: #666666;
    --light-gray: #e0e0d8;
    --cream: #f5f5f0;
    --cream-warm: #faf9f5;
    --white: #ffffff;
    --error: #d32f2f;
    --success: #00897b;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-panel {
    background: linear-gradient(135deg, #00897b 0%, #00695c 100%);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

    .brand-panel::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: float 20s ease-in-out infinite;
    }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-30px, -30px) rotate(180deg);
    }
}

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

.logo-section {
    margin-bottom: 60px;
}

.logo-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 16px 28px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 16px;
}

.logo-img {
    width: 200px;
    height: auto;
    display: block;
}

.tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 500;
}

.welcome-message {
    margin-bottom: 40px;
}

    .welcome-message h1 {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 36px;
        font-weight: 700;
        color: var(--white);
        margin-bottom: 16px;
        line-height: 1.2;
    }

    .welcome-message p {
        color: rgba(255, 255, 255, 0.85);
        font-size: 16px;
        line-height: 1.6;
    }

.features-list {
    list-style: none;
    margin: 40px 0;
}

    .features-list li {
        color: rgba(255, 255, 255, 0.9);
        font-size: 15px;
        padding: 12px 0;
        padding-left: 32px;
        position: relative;
    }

        .features-list li::before {
            content: "?";
            position: absolute;
            left: 0;
            color: var(--accent);
            font-weight: 700;
            font-size: 20px;
        }

.brand-footer {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

    .brand-footer a {
        color: rgba(255, 255, 255, 0.9);
        text-decoration: none;
        margin: 0 8px;
    }

        .brand-footer a:hover {
            color: var(--white);
            text-decoration: underline;
        }

.form-panel {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 40px;
}

    .mobile-logo img {
        width: 180px;
        height: auto;
    }

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

    .form-header h2 {
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 32px;
        font-weight: 700;
        color: var(--dark);
        margin-bottom: 8px;
    }

    .form-header p {
        color: var(--gray);
        font-size: 15px;
    }

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

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

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        font-size: 14px;
        font-weight: 600;
        color: var(--dark);
    }

    .form-group input {
        padding: 14px 18px;
        font-size: 15px;
        border: 2px solid var(--light-gray);
        border-radius: 10px;
        font-family: inherit;
        transition: all 0.3s ease;
        background: var(--white);
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(0, 137, 123, 0.1);
        }

        .form-group input::placeholder {
            color: #aaa;
        }

.password-input-wrapper {
    position: relative;
}

    .password-input-wrapper input {
        width: 100%;
        padding-right: 70px;
    }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 14px;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

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

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

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

    .remember-me input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: var(--primary);
    }

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

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

    .forgot-password:hover {
        text-decoration: underline;
    }

.submit-btn {
    padding: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 137, 123, 0.3);
    }

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

.signup-prompt {
    text-align: center;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--light-gray);
    color: var(--gray);
    font-size: 14px;
}

    .signup-prompt a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 700;
    }

        .signup-prompt a:hover {
            text-decoration: underline;
        }

.error-message {
    background: #ffebee;
    color: var(--error);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.field-validation-error {
    color: var(--error);
    font-size: 13px;
    font-weight: 500;
}

.input-validation-error {
    border-color: var(--error) !important;
}

@media (max-width: 968px) {
    .login-container {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .brand-panel {
        display: none;
    }

    .mobile-logo {
        display: block;
    }

    .form-panel {
        padding: 40px 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .login-container {
        border-radius: 0;
        min-height: 100vh;
    }

    .form-panel {
        padding: 40px 24px;
    }

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

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

