:root {
    --auth-primary: #441668;
    --auth-primary-hover: #361153;
    --auth-text-dark: #1F2937;
    --auth-text-label: #374151;
    --auth-text-muted: #9AA0A9;
    --auth-border: #D1D5DB;
    --auth-card-outline: #F3F4F6;
    --auth-font-family: 'Comfortaa', cursive, sans-serif;
}

body.custom-login,
.custom-login,
.custom-login *:not(i):not([class*="ti"]):not([class*="feather"]):not([class*="fa"]) {
    font-family: 'Comfortaa', cursive, sans-serif !important;
}

.custom-login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 100%;
    min-height: 100vh;
    background: #F8FAFC;
}

.custom-login .bg-login,
.custom-login .login-bg-1,
.custom-login .login-bg-2 {
    display: none !important;
}

.custom-login .custom-login-inner {
    width: 100%;
    max-width: 1280px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 24px;
    margin: 0 auto;
}

/* Header Styling - Floating Card Header matching idab_cards */
.custom-login .dash-header {
    position: relative;
    left: 0;
    top: 0;
    right: 0;
    width: 100%;
    box-shadow: none;
    min-height: auto;
    background: transparent;
    padding: 0;
    margin-bottom: 24px;
}

.custom-login .dash-header .navbar {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 4px 12px -2px rgba(16, 24, 40, 0.08), 0 2px 4px -2px rgba(16, 24, 40, 0.04);
    border: 1px solid rgba(229, 231, 235, 0.8);
    padding: 10px 24px;
}

.custom-login .dash-header .navbar-brand img {
    max-height: 48px;
    width: auto;
}

.custom-login .drp-language .btn {
    background: #F9FAFB;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: var(--auth-font-family) !important;
    font-size: 13px;
    font-weight: 500;
    color: var(--auth-text-label);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.custom-login .drp-language .btn:hover {
    background: #FFFFFF;
    border-color: var(--auth-primary);
    color: var(--auth-primary);
}

/* Main Layout Wrapper */
.custom-login .custom-wrapper {
    padding: 20px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 auto;
}

.custom-login .custom-wrapper .custom-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    gap: 48px;
    z-index: 9;
}

/* Left Illustration Column */
.custom-login .auth-left-illustration {
    flex: 1;
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-login .auth-illustration-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    object-fit: contain;
}

/* Right Login Card Column */
.custom-login .auth-right-card {
    flex: 1;
    max-width: 448px;
    display: flex;
    justify-content: center;
}

.custom-login .card {
    margin-bottom: 0;
    background-color: transparent;
    border: none;
    box-shadow: none;
    width: 100%;
    max-width: 448px;
}

.custom-login .custom-wrapper .card .card-body {
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 448px;
    margin: 0 auto;
    padding: 44px 36px !important;
    border-radius: 16px !important;
    outline: 1px var(--auth-card-outline) solid !important;
    outline-offset: -1px;
    border: none !important;
    box-shadow: 0px 8px 10px -6px rgba(0, 0, 0, 0.08), 0px 20px 25px -5px rgba(0, 0, 0, 0.08) !important;
}

/* Heading */
.custom-login .card-body h2 {
    font-family: var(--auth-font-family) !important;
    font-weight: 700 !important;
    font-size: 24px !important;
    line-height: 32px !important;
    color: var(--auth-text-dark) !important;
    text-align: center;
    margin-bottom: 28px !important;
}

/* Form Group & Labels */
.custom-login-form .form-group {
    margin-bottom: 20px;
}

.custom-login .form-label {
    font-family: var(--auth-font-family) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--auth-text-label) !important;
    line-height: 20px !important;
    margin-bottom: 6px;
    display: block;
}

/* Form Controls */
.custom-login .form-control {
    font-family: var(--auth-font-family) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    height: 44px !important;
    line-height: 44px !important;
    border-radius: 8px !important;
    border: 1px solid var(--auth-border) !important;
    background: #FFFFFF !important;
    color: var(--auth-text-dark) !important;
    padding: 0 14px !important;
    transition: all 0.2s ease-in-out;
}

.custom-login .form-control::placeholder {
    color: #6B7280 !important;
    font-size: 13px !important;
    font-family: var(--auth-font-family) !important;
    font-weight: 400 !important;
    opacity: 1;
}

.custom-login .form-control:focus {
    border-color: var(--auth-primary) !important;
    box-shadow: 0 0 0 3px rgba(68, 22, 104, 0.15) !important;
}

/* Buttons */
.custom-login .btn-primary,
.custom-login button[type="submit"] {
    background-color: var(--auth-primary) !important;
    border-color: var(--auth-primary) !important;
    border-radius: 8px !important;
    height: 48px !important;
    line-height: 48px !important;
    padding: 0 16px !important;
    font-family: var(--auth-font-family) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #FFFFFF !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-shadow: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.custom-login .btn-primary:hover,
.custom-login button[type="submit"]:hover {
    background-color: var(--auth-primary-hover) !important;
    border-color: var(--auth-primary-hover) !important;
    box-shadow: 0 4px 14px rgba(68, 22, 104, 0.3) !important;
}

/* Links & Footer text */
.custom-login a {
    color: var(--auth-primary) !important;
    font-family: var(--auth-font-family) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.custom-login a:hover {
    color: var(--auth-primary-hover) !important;
    text-decoration: underline;
}

.custom-login .forgot-pwd-link,
.custom-login a[href*="password/reset"],
.custom-login a[href*="forgot-password"] {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: var(--auth-primary) !important;
    line-height: 16px !important;
}

.custom-login .form-check-input {
    width: 16px !important;
    height: 16px !important;
    border-radius: 4px !important;
    border: 1px var(--auth-border) solid !important;
    background-color: #FFFFFF;
    cursor: pointer;
    margin-top: 2px;
}

.custom-login .form-check-input:checked {
    background-color: var(--auth-primary) !important;
    border-color: var(--auth-primary) !important;
}

.custom-login .form-check-label {
    font-family: var(--auth-font-family) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--auth-text-label) !important;
    line-height: 20px !important;
    padding-left: 4px;
    cursor: pointer;
}

.custom-login .auth-switch-text,
.custom-login p.my-4.text-center {
    color: var(--auth-text-muted) !important;
    font-size: 12px !important;
    font-family: var(--auth-font-family) !important;
    font-weight: 700 !important;
    line-height: 24px !important;
    text-align: center;
    margin-top: 24px !important;
    margin-bottom: 0 !important;
}

.custom-login .auth-switch-text a,
.custom-login p.my-4.text-center a {
    color: var(--auth-primary) !important;
    font-size: 12px !important;
    font-family: var(--auth-font-family) !important;
    font-weight: 700 !important;
    line-height: 24px !important;
}

.auth-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 16px 0;
    font-family: var(--auth-font-family) !important;
    font-size: 12px;
    color: var(--auth-text-muted);
}

/* Responsive Breakpoints */
@media only screen and (max-width: 991px) {
    .custom-login .custom-wrapper .custom-row {
        flex-direction: column;
        justify-content: center;
        gap: 32px;
    }

    .custom-login .auth-left-illustration {
        max-width: 360px;
    }

    .custom-login .auth-right-card {
        width: 100%;
        max-width: 448px;
    }
}

@media only screen and (max-width: 575px) {
    .custom-login .custom-login-inner {
        padding: 16px 20px;
    }

    .custom-login .custom-wrapper .card .card-body {
        padding: 28px 20px !important;
        border-radius: 12px !important;
    }

    .custom-login .card-body h2 {
        font-size: 20px !important;
        line-height: 28px !important;
        margin-bottom: 20px !important;
    }

    .custom-login .auth-left-illustration {
        max-width: 260px;
    }
}