.auth-page {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    isolation: isolate !important;
    font-family: "Source Sans Pro", "Helvetica Neue", sans-serif;
}

/* Top Right Glow */
.auth-page::after {
    content: "";
    position: absolute;

    top: -250px;
    right: -250px;

    width: 700px;
    height: 700px;

    border-radius: 50%;

    z-index: -10 !important;
    pointer-events: none;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 65px 0;
    position: relative;
    z-index: 2 !important;
}

.auth-brand {
    max-width: 560px;
}

.auth-brand img {
    height: 60px !important;
    width: auto !important;
}

.auth-brand small {
    font-size: 13px;
    letter-spacing: .3px;
}

.auth-brand h1 {
    font-size: 43px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    color: #0f2d63;
}

.auth-description {
    max-width: 520px;
    font-size: 18px;
    line-height: 1.6;
    color: #6c7a89;
}

.auth-card {
    position: relative;
    z-index: 3 !important;
    border: 1px solid rgba(15, 23, 42, .05);
    border-radius: 32px;
    background: #ffffff !important;
    background-color: #ffffff !important;

    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.06),
        0 4px 12px rgba(15, 23, 42, 0.03),
        0 0 1px rgba(15, 23, 42, 0.05) !important;

    overflow: hidden;
}

.auth-card::before {
    content: "";

    position: absolute;
    width: 250px;
    height: 250px;

    top: -100px;
    right: -100px;

    z-index: 0;
}

.auth-card .card-body {
    position: relative;
    z-index: 1;
    padding: 40px 36px;
}

/* Modern & Professional Inputs (Less Rounded) */
.form-control-auth {
    height: auto !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    transition: all 0.2s ease-in-out !important;
}

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

.form-control-auth:focus {
    background-color: #fff !important;
    border-color: #1f5eff !important;
    box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.15) !important;
    outline: none !important;
}

/* Merge Password input & Show/Hide Eye Button into a single box */
.password-show-hide .input-group {
    display: flex !important;
    align-items: stretch !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    background-color: #f8fafc !important;
    transition: all 0.2s ease-in-out !important;
    overflow: hidden !important;
}

.password-show-hide .input-group:focus-within {
    background-color: #fff !important;
    border-color: #1f5eff !important;
    box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.15) !important;
}

.password-show-hide .input-group .form-control-auth {
    border: none !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.password-show-hide .input-group-append,
.password-show-hide .input-group-btn {
    margin: 0 !important;
    display: flex !important;
}

.password-show-hide .input-group-append button,
.password-show-hide .input-group-append .input-group-text,
.password-show-hide .input-group-btn button {
    border: none !important;
    border-left: 1px solid #cbd5e1 !important;
    /* Only left border */
    border-radius: 0 !important;
    background-color: #f1f5f9 !important;
    /* Subtle gray background for toggle box */
    color: #64748b !important;
    padding: 0 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    transition: all 0.2s ease-in-out !important;
    outline: none !important;
    box-shadow: none !important;
}

.password-show-hide .input-group-append button:hover,
.password-show-hide .input-group-btn button:hover {
    background-color: #e2e8f0 !important;
    color: #334155 !important;
}

/* Modern Submit Button Style */
.auth-card button[type="submit"] {
    border-radius: 8px !important;
    padding: 12px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease-in-out !important;
    background-color: #1f5eff !important;
    border-color: #1f5eff !important;
    box-shadow: 0 4px 12px rgba(31, 94, 255, 0.15) !important;
}

.auth-card button[type="submit"]:hover {
    background-color: #114ee8 !important;
    border-color: #114ee8 !important;
    box-shadow: 0 6px 16px rgba(31, 94, 255, 0.25) !important;
    transform: translateY(-1px) !important;
}

/* Password Generator Box Style */
#password-generator-box {
    background-color: #f1f5f9 !important;
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

#password-generator-box .card-body {
    padding: 16px 20px !important;
}

#password-generator-box label {
    font-size: 13px !important;
    color: #475569 !important;
    font-weight: 600 !important;
}

#password-generator-box #generated-password {
    height: auto !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-family: monospace !important;
    background-color: #fff !important;
    border: 1px solid #cbd5e1 !important;
}

#password-generator-box .btn-sm {
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.auth-divider {
    width: 50px;
    height: 3px;
    background: #1f5eff;
    margin: 15px auto 25px;
    border-radius: 999px;
}

.auth-brand .feature-item {
    color: #1e3a5f;
}

.auth-brand .feature-item strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #0f2d63;
    margin-bottom: 2px;
}

.auth-brand .feature-item div:last-child {
    font-size: 16px;
    line-height: 1.5;
}

.auth-brand .feature-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;
    background: #fff;

    box-shadow:
        0 10px 15px rgba(15, 23, 42, .06);

    margin-right: 18px;

    color: #0057b8;
    font-size: 22px;
}

.auth-dots {
    position: absolute;

    width: 140px;
    height: 140px;

    background-image:
        radial-gradient(#c8dbff 2px,
            transparent 2px);

    background-size: 16px 16px;
    opacity: .9;
    z-index: -10 !important;
    pointer-events: none;
}

.auth-dots-1 {
    top: 50px;
    right: 14%;
}

.auth-dots-2 {
    bottom: 50px;
    right: 38%;
}

/* ------------------------------
                                                       TABLET
                                                    ------------------------------ */
@media (max-width: 991px) {

    .auth-wrapper {
        padding: 60px 0;
    }

    .auth-brand {
        display: none;
    }

    .auth-card {
        max-width: 650px;
        margin: 0 auto;
    }

    .auth-dots {
        display: none;
    }
}

/* ------------------------------
                                                       MOBILE
                                                    ------------------------------ */
@media (max-width: 767px) {

    .auth-wrapper {
        min-height: 100vh;
        align-items: center;
        padding: 20px;
    }

    .auth-wave,
    .auth-wave-2,
    .auth-page::after {
        display: none;
    }

    .auth-card {
        width: 100%;
        border-radius: 20px;
        box-shadow:
            0 10px 30px rgba(15, 23, 42, .08);
    }

    .auth-card .card-body {
        padding: 30px 20px;
    }

    .auth-card img {
        height: 55px !important;
    }

    .auth-card h2 {
        font-size: 25px;
    }

    .auth-divider {
        margin-bottom: 20px;
    }

    .auth-page {
        background: #f8fbff;
    }
}

.auth-subtext {
    font-size: 14px !important;
    color: #94a3b8 !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
}

#btn-generate-password {
    font-size: 14px !important;
}