@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --primary-red: #db1e40;
    --primary-red-glow: rgba(219, 30, 64, 0.15);
    --text-dark: #1a1a1a;
    --text-light: #525252;
    --glass-white: rgba(255, 255, 255, 0.85);
    --border-light: rgba(255, 255, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    height: 100vh;
    overflow: hidden;
    background: #fdfdfd;
}

.split-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Left Side - The Serene Image Section */
.image-side {
    flex: 1;
    position: relative;
    /* Use a high-quality guaranteed URL for maximum beauty and clarity */
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3)), url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?ixlib=rb-4.0.3&auto=format&fit=crop&w=1500&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    padding: 80px;
    animation: zoomEffect 20s infinite alternate ease-in-out;
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

.image-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.image-content-wrapper {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    max-width: 500px;
}

.image-content-wrapper h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 15px;
    line-height: 1.1;
    font-weight: 800;
}

.image-content-wrapper p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Right Side - The Elegant Login Section */
.login-side {
    flex: 1;
    background: #eef2fc;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

/* Decorative background circles */
.login-side::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-red);
    opacity: 0.03;
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Center the form content */
    padding: 60px;
    background: white;
    z-index: 10;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo,
.header-text,
form {
    width: 100%;
    max-width: 440px;
    /* Constrain content for readability */
}

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

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

.brand-logo {
    margin-bottom: 35px;
    text-align: center;
}

.brand-logo img {
    height: 55px;
}

.header-text {
    margin-bottom: 40px;
    text-align: center;
}

.header-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.header-text p {
    color: var(--text-light);
    font-size: 1rem;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    margin-left: 5px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.input-container>i {
    position: absolute;
    left: 20px;
    color: #94a3b8;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.password-toggle i {
    position: static;
    left: auto;
    font-size: 1.1rem;
}

.form-input {
    width: 100%;
    padding: 16px 65px 16px 55px;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.05rem;
    color: var(--text-dark);
    background: #fbfcfe;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

/* Fix for Autofill Background */
.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-input:focus {
    border-color: var(--primary-red);
    background: white;
    box-shadow: 0 10px 25px var(--primary-red-glow);
}

.form-input:focus+i {
    color: var(--primary-red);
}

.password-toggle {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    width: 38px;
    height: 38px;
    margin: 0;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 50%;
}

.password-toggle:hover {
    color: var(--primary-red);
    background: rgba(219, 30, 64, 0.08);
}

.password-toggle:focus {
    outline: none;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    font-size: 0.95rem;
}

.remember-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    cursor: pointer;
}

.remember-checkbox input {
    accent-color: var(--primary-red);
    width: 18px;
    height: 18px;
}

.forgot-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--primary-red);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 12px 24px rgba(210, 16, 51, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.submit-btn:hover {
    background: #b00d2b;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 18px 35px rgba(210, 16, 51, 0.35);
}

.submit-btn i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

.copyright {
    position: absolute;
    bottom: 30px;
    font-size: 0.85rem;
    color: #94a3b8;
}

@media (max-width: 1100px) {
    .image-side {
        padding: 40px;
    }

    .image-content-wrapper h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 900px) {
    .image-side {
        display: none;
    }

    .login-side {
        flex: 1;
        padding: 25px;
    }
}