/* --- NEW AUTH DESIGN SYSTEM --- */
:root {
    --primary-red: #ff4949;
    --primary-red-hover: #e20c0c;
    --text-dark: #121212;
    --text-muted: #6b7280;
    --border-gray: #e5e7eb;
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

body,
html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

.main-auth-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/auth-background-img.png') no-repeat center center;
    background-size: cover;
    padding: 80px;
    position: relative;
}

/* Glassmorphism wrapper requested by user */
.auth-card-outer-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - 160px);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    padding: 16px;
    display: flex;
    align-items: stretch;
}

/* Optional Overlay for better card contrast if needed */
.main-auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    min-height: 600px;
}

.auth-split-wrapper {
    display: flex;
    width: 100%;
}

/* Left Side - Form Content */
.auth-form-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    /* background: #f9fafb; */
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--border-gray);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 4px rgba(255, 73, 73, 0.1);
}

.field-icon-wrapper {
    position: relative;
}

.field-icon-wrapper .toggle-password {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
}

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

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 4px;
    cursor: pointer;
}

.forgot-password-link {
    font-size: 0.9rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.btn-auth-primary {
    width: 100%;
    padding: 1.125rem;
    background: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-auth-primary:hover {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 73, 73, 0.3);
}

/* Right Side - Hero Side */
.auth-hero-side {
    flex: 1.1;
    position: relative;
    background: url('../img/auth-bg1.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    color: #fff;
    margin: 16px;
    border-radius: 16px;
    overflow: hidden;
    background-position: top left;
}

.auth-hero-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.auth-hero-side>* {
    position: relative;
    z-index: 2;
}

.hero-logo img {
    height: 45px;
}

.hero-footer-content {
    max-width: 500px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    line-height: 1.6;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-red);
    font-weight: 700;
    text-decoration: none;
    margin-left: 0.25rem;
}

/* Mobile Logos */
.mobile-logo {
    display: none;
    justify-content: center;
    margin-bottom: 2rem;
}

.mobile-logo img {
    height: 40px;
}

/* Responsiveness */
@media (max-width: 1199.98px) {
    .main-auth-container {
        padding: 50px;
    }
}

@media (max-width: 991.98px) {
    .main-auth-container {
        padding: 30px;
    }

    .auth-card-outer-wrapper {
        padding: 12px;
        border-radius: 20px;
    }

    .auth-card {
        flex-direction: column;
        /* max-width: 500px; */
        min-height: auto;
    }

    .form-title,
    .form-subtitle {
        text-align: center;
    }

    .auth-hero-side {
        display: none;
    }

    .auth-form-side {
        padding: 3rem 2rem;
    }

    .mobile-logo {
        display: flex;
    }
}

@media (max-width: 575.98px) {
    .main-auth-container {
        padding: 15px;
    }

    .auth-card-outer-wrapper {
        padding: 8px;
        border-radius: 16px;
    }

    .form-title {
        font-size: 2rem;
    }
}