:root {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --input-bg: #f8fafc;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    min-height: 100vh;
}

.ftco-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
}

/* Card Container */
.wrap,
.wrap-2 {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    /* Wider for better split */
    display: flex;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.wrap-2 {
    max-width: 420px;
    /* Center card for reset pages */
}

/* Left Side Image */
.img {
    width: 50%;
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 500px;
}

.img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6));
}

/* Overlay Animation */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    color: white;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.img:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Typography refinement */
.overlay h4 {
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* Right Side Content */
.login-wrap,
.login-wrap-2 {
    width: 50%;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-wrap-2 {
    width: 100%;
    padding: 3rem;
}

/* Auth Title Refinement */
h3.auth-title {
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    text-align: center;
}

.label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: block;
}

.text-danger {
    color: #ef4444 !important;
}

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

.form-control {
    height: 50px;
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0 1rem;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: all 0.2s ease;
}

.form-control:focus {
    background-color: white;
    border-color: var(--border-color);
    /* Keep original border */
    box-shadow: none;
    /* Remove focus ring */
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Buttons */
.login-button,
.btn-primary-v2 {
    height: 50px;
    background-color: var(--primary-color) !important;
    color: white !important;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px var(--primary-color-rgba);
}

.login-button:hover,
.btn-primary-v2:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px var(--primary-color-rgba);
    filter: brightness(1.1);
}

.forgot-pass {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}

.forgot-pass:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Alerts */
.alert {
    border: none;
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
}

.alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
}

/* Logo */
.logo-area {
    margin-bottom: 2rem;
}

.logo-area img {
    height: 50px;
    width: auto;
}

/* Responsive */
@media (max-width: 992px) {
    .wrap {
        flex-direction: column;
        max-width: 500px;
    }

    .img {
        width: 100%;
        min-height: 200px;
        display: none;
        /* Hide image on mobile for cleaner look, or keep small */
    }

    .login-wrap {
        width: 100%;
        padding: 2.5rem;
    }
}

@media (max-width: 576px) {
    .ftco-section {
        padding: 1rem;
    }

    .wrap-2 {
        max-width: 100%;
        width: 100%;
    }

    .login-wrap,
    .login-wrap-2 {
        padding: 2rem 1.5rem;
    }
}

/* Utilities */
.mb-3 {
    margin-bottom: 1rem;
}

.d-flex {
    display: flex;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-end {
    justify-content: flex-end;
}

.w-100 {
    width: 100%;
}