body.bg-gradient-primary {
    background-image: linear-gradient(160deg, #4B1D63, #E6397D);
}

/* Center the card */
.login-container {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}

/* Two-column card */
.login-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    /* slightly wider brand side */
    width: 100%;
    max-width: 1100px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0)) padding-box,
        linear-gradient(135deg, rgba(70, 14, 101, 0.55), rgba(230, 57, 125, .55)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 24px 60px rgba(2, 6, 23, .26);
    overflow: clip;
}

/* LEFT — brand panel fills area */
.login-logo {
    position: relative;
    background:
        radial-gradient(1100px 520px at -10% -20%, rgba(75, 29, 99, .12), transparent 60%),
        radial-gradient(900px 500px at 110% 110%, rgba(230, 57, 125, .12), transparent 60%),
        #ffffff;
    min-height: 520px;
    display: grid;
    place-items: center;
    /* center logo perfectly */
    padding: clamp(20px, 4vw, 40px);
}

/* Subtle grid watermark */
.login-logo::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, .05) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, transparent, black 12%, black 70%, transparent);
    pointer-events: none;
}

/* Logo fits the panel responsively */
.login-logo img {
    width: 100%;
    height: auto;
    max-width: clamp(240px, 48vh, 420px);
    max-height: clamp(240px, 48vh, 420px);
    object-fit: contain;
    display: block;
}

/* RIGHT — content column */
.login-content {
    background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .55));
    backdrop-filter: blur(6px);
    padding: clamp(28px, 4vw, 56px);
    display: grid;
    align-content: center;
    justify-items: start;
}

/* Headline + helper text */
.login-content .text-center {
    text-align: left !important;
    width: 100%;
    margin-bottom: 10px;
}

.login-content h1.h4 {
    color: #3A164D;                 /* deep brand purple instead of dark navy */
    margin-bottom: 8px !important;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1.2;
    font-weight: 600;               /* a bit bolder, more premium */
    letter-spacing: 0.01em;         /* subtle spacing for cleaner look */
}

.login-content p.small,
.login-content .text-muted {
    color: #765e85 !important;      /* softer muted purple instead of gray */
    margin: 0 0 18px 0;
    font-size: 15px;
    font-weight: 500;               /* medium weight for readability */
}

/* Centered column for the form with pro spacing */
.form-shell {
    width: 100%;
    max-width: 420px;
    display: grid;
    gap: 14px;
    /* consistent professional gap */
}

.form-group {
    margin-bottom: 0;
}

/* Inputs: good contrast + 16px font (avoid iOS zoom) */
.form-control-user {
    border-radius: 12px !important;
    border: 1px solid rgba(148, 163, 184, .35);
    background: #ffffff;
    font-size: 16px;
    padding-top: 16px;
    padding-bottom: 16px;
    margin-bottom: 12px;
    transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}


.form-control-user::placeholder {
    color: #94a3b8;
}

.form-control-user:focus {
    border-color: #7A2BA7;
    /* better contrast ring */
    box-shadow: 0 0 0 .2rem rgba(122, 43, 167, .35);
    background: #fff;
    outline: none;
}

.form-control-user:invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 .2rem rgba(239, 68, 68, .18);
}

/* return to your blue ring when the user fixes it */
.form-control-user:focus:valid {
    border-color: #7A2BA7;
    box-shadow: 0 0 0 .2rem rgba(122, 43, 167, .28);
}

/* Submit button spans column */
#login-submit {
    width: 100%;
    border-radius: 12px;
    font-weight: 700;
    padding: 12px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #4B1D63, #3A164D);
    border: 1px solid rgba(75, 29, 99, .35);
    color: #fff;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}

#login-submit:hover {
    filter: brightness(1.03);
}

#login-submit:active {
    transform: translateY(1px);
}

/* Error message aligns with form, readable red */

#error-message {
    text-align: center;
    width: 100%;
    margin-top: 10px;
    font-size: 14px;
    color: #E6397D !important;
    /* vivid red, readable on light background */
}


/* Mobile: stack columns */
@media (max-width: 992px) {
    .login-card {
        grid-template-columns: 1fr;
    }

    .login-logo {
        min-height: 260px;
    }

    .login-content {
        justify-items: center;
        text-align: center;
    }

    .login-content .text-center {
        text-align: center !important;
    }
}

/* Soft entrance */
@media (prefers-reduced-motion: no-preference) {
    .login-card {
        animation: rise .45s ease both;
    }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(8px)
        }

        to {
            opacity: 1;
            transform: none
        }
    }
}