/* =========================================================
   PROCTORBRIDGE LOGIN
   /public/assets/css/main.css
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;

    --secondary: #0f172a;

    --text-dark: #172033;
    --text-muted: #64748b;

    --border-color: #dfe5ee;

    --surface: #ffffff;

    --danger: #dc2626;
    --danger-bg: #fef2f2;

    --success: #15803d;
    --success-bg: #f0fdf4;

    --shadow:
        0 25px 70px rgba(15, 23, 42, 0.18);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f7f9fc;
    color: var(--text-dark);
}


/* =========================================================
   MAIN AUTH PAGE
========================================================= */

.auth-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;

    padding: 50px 7%;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(6, 18, 38, 0.72) 0%,
            rgba(6, 18, 38, 0.55) 45%,
            rgba(6, 18, 38, 0.18) 100%
        ),
        url("../images/bghome.jpg");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;
}


/* subtle overlay */

.auth-page::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 15% 30%,
            rgba(59, 130, 246, 0.20),
            transparent 35%
        );

    pointer-events: none;
}


/* =========================================================
   LEFT HERO AREA
========================================================= */

.auth-hero {
    width: 48%;

    max-width: 650px;

    color: #ffffff;

    position: relative;

    z-index: 2;
}


/* Brand pill */

.brand-pill {
    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 28px;

    padding: 10px 18px;

    border-radius: 50px;

    background:
        rgba(255, 255, 255, 0.13);

    border:
        1px solid rgba(255, 255, 255, 0.24);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    font-size: 15px;

    font-weight: 600;

    letter-spacing: 0.2px;
}


.brand-pill i {
    color: #93c5fd;

    font-size: 18px;
}


/* Hero heading */

.auth-hero h1 {
    margin: 0 0 22px 0;

    font-size: clamp(
        42px,
        4.5vw,
        68px
    );

    line-height: 1.08;

    font-weight: 700;

    letter-spacing: -1.5px;

    color: #ffffff;
}


/* Hero paragraph */

.auth-hero > p {
    max-width: 560px;

    margin: 0;

    font-size: 18px;

    line-height: 1.75;

    color:
        rgba(255, 255, 255, 0.84);
}


/* =========================================================
   HERO FEATURES
========================================================= */

.hero-features {
    margin-top: 35px;

    display: flex;

    flex-direction: column;

    gap: 14px;
}


.hero-feature {
    display: flex;

    align-items: center;

    gap: 12px;

    font-size: 15px;

    font-weight: 500;

    color:
        rgba(255, 255, 255, 0.90);
}


.hero-feature i {
    color: #60a5fa;

    font-size: 17px;
}


/* =========================================================
   RIGHT AUTH CONTAINER
========================================================= */

.auth-container {
    width: 46%;

    max-width: 500px;

    position: relative;

    z-index: 2;

    display: flex;

    justify-content: flex-end;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.auth-card {
    width: 100%;

    max-width: 460px;

    padding: 44px 42px 36px;

    background:
        rgba(255, 255, 255, 1);

    border-radius: 24px;

    box-shadow: var(--shadow);

    border:
        1px solid rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);
}


/* =========================================================
   BRAND / LOGO
========================================================= */

.auth-brand {
    text-align: center;

    margin-bottom: 30px;
}


.auth-logo {
    max-width: 220px;

    max-height: 78px;

    object-fit: contain;

    margin-bottom: 16px;
}


.auth-brand h2 {
    margin: 0;

    font-size: 27px;

    font-weight: 700;

    color: var(--secondary);

    letter-spacing: -0.4px;
}


.auth-brand p {
    margin: 7px 0 0;

    font-size: 14px;

    line-height: 1.6;

    color: var(--text-muted);
}


/* =========================================================
   FORM
========================================================= */

.auth-form,
#loginForm {
    width: 100%;

    margin: 0;
}


.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 600;

    color: #334155;
}


/* =========================================================
   INPUT WRAPPER
========================================================= */

.input-wrapper {
    width: 100%;

    position: relative;
}


.input-wrapper .input-icon {
    position: absolute;

    left: 16px;

    top: 50%;

    transform: translateY(-50%);

    color: #94a3b8;

    font-size: 15px;

    pointer-events: none;

    z-index: 2;
}


/* =========================================================
   INPUT
========================================================= */

.form-control {
    width: 100%;

    min-height: 52px;

    padding:
        13px
        46px
        13px
        46px;

    border:
        1px solid var(--border-color);

    border-radius: 12px;

    background: #ffffff;

    color: var(--text-dark);

    font-family: "Poppins", sans-serif;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.form-control::placeholder {
    color: #a3afc2;
}


.form-control:hover {
    border-color: #c4cede;
}


.form-control:focus {
    outline: none;

    border-color: var(--primary);

    background: #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(37, 99, 235, 0.10);
}


/* Bootstrap override */

.form-control:focus {
    color: var(--text-dark);
}


/* =========================================================
   PASSWORD
========================================================= */

.password-wrapper .form-control {
    padding-right: 50px;
}


.password-toggle {
    position: absolute;

    right: 12px;

    top: 50%;

    transform: translateY(-50%);

    width: 34px;

    height: 34px;

    border: none;

    background: transparent;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #64748b;

    cursor: pointer;

    border-radius: 8px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


.password-toggle:hover {
    color: var(--primary);

    background: #eff6ff;
}


.password-toggle:focus {
    outline: none;
}


/* =========================================================
   REMEMBER / FORGOT
========================================================= */

.form-options {
    margin-top: -2px;

    margin-bottom: 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.remember-me {
    margin: 0;

    display: flex;

    align-items: center;

    gap: 8px;

    cursor: pointer;

    font-size: 13px;

    font-weight: 400 !important;

    color: var(--text-muted) !important;
}


.remember-me input {
    width: 16px;

    height: 16px;

    accent-color: var(--primary);

    cursor: pointer;
}


.forgot-link {
    font-size: 13px;

    font-weight: 600;

    color: var(--primary);

    text-decoration: none;

    transition: color 0.2s ease;
}


.forgot-link:hover {
    color: var(--primary-dark);

    text-decoration: none;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.auth-btn {
    width: 100%;

    min-height: 53px;

    border: none;

    border-radius: 12px;

    padding: 13px 20px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-light)
        );

    color: #ffffff;

    font-family: "Poppins", sans-serif;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 0.3px;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(37, 99, 235, 0.24);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.auth-btn:hover {
    transform: translateY(-1px);

    background:
        linear-gradient(
            135deg,
            var(--primary-dark),
            var(--primary)
        );

    box-shadow:
        0 13px 30px
        rgba(37, 99, 235, 0.30);
}


.auth-btn:active {
    transform: translateY(0);
}


.auth-btn:disabled {
    opacity: 0.7;

    cursor: not-allowed;

    transform: none;
}


/* =========================================================
   LOGIN MESSAGE
========================================================= */

.login-message {
    display: none;

    margin-bottom: 18px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.5;
}


.login-message:not(:empty) {
    display: block;
}


.error-message {
    background: var(--danger-bg);

    color: var(--danger);

    border:
        1px solid #fecaca;
}


.success-message {
    background: var(--success-bg);

    color: var(--success);

    border:
        1px solid #bbf7d0;
}


/* =========================================================
   CARD FOOTER
========================================================= */

.auth-footer {
    margin-top: 28px;

    padding-top: 22px;

    border-top:
        1px solid #edf0f5;

    text-align: center;

    font-size: 12px;

    color: #94a3b8;
}


.auth-footer strong {
    margin-left: 4px;

    color: var(--primary);

    font-weight: 600;
}


/* =========================================================
   LOADER
========================================================= */

#loader1 {
    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    background:
        rgba(15, 23, 42, 0.48);

    backdrop-filter: blur(3px);

    -webkit-backdrop-filter: blur(3px);
}


.loader-overlay {
    width: 100%;

    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap: 16px;
}


.loader-overlay p {
    margin: 0;

    color: #ffffff;

    font-size: 14px;

    font-weight: 500;
}


.loader-spinner {
    width: 46px;

    height: 46px;

    border-radius: 50%;

    border:
        4px solid
        rgba(255, 255, 255, 0.28);

    border-top-color: #ffffff;

    animation:
        proctorBridgeSpin
        0.75s
        linear
        infinite;
}


@keyframes proctorBridgeSpin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   LARGE SCREEN
========================================================= */

@media
    only screen
    and (min-width: 1400px) {

    .auth-page {
        padding-left: 9%;

        padding-right: 9%;
    }

    .auth-card {
        max-width: 480px;

        padding:
            48px
            46px
            38px;
    }

}


/* =========================================================
   TABLETS / SMALL LAPTOP
========================================================= */

@media
    only screen
    and (max-width: 991px) {

    .auth-page {
        min-height: 100vh;

        flex-direction: column;

        justify-content: center;

        align-items: center;

        padding:
            50px
            24px;

        background-position: center;
    }


    .auth-page::after {
        content: "";

        position: absolute;

        inset: 0;

        background:
            rgba(6, 18, 38, 0.42);

        pointer-events: none;
    }


    .auth-hero {
        width: 100%;

        max-width: 650px;

        margin-bottom: 34px;

        text-align: center;

        position: relative;

        z-index: 3;
    }


    .brand-pill {
        margin-left: auto;

        margin-right: auto;
    }


    .auth-hero h1 {
        font-size: 44px;
    }


    .auth-hero > p {
        margin-left: auto;

        margin-right: auto;
    }


    .hero-features {
        max-width: 360px;

        margin:
            28px auto 0;

        align-items: flex-start;

        text-align: left;
    }


    .auth-container {
        width: 100%;

        max-width: 500px;

        justify-content: center;

        position: relative;

        z-index: 3;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media
    only screen
    and (max-width: 576px) {

    .auth-page {
        padding:
            32px
            16px;

        justify-content: flex-start;
    }


    .auth-hero {
        margin-bottom: 24px;
    }


    .brand-pill {
        margin-bottom: 18px;

        padding:
            8px
            14px;

        font-size: 13px;
    }


    .auth-hero h1 {
        font-size: 34px;

        line-height: 1.15;

        letter-spacing: -0.7px;

        margin-bottom: 14px;
    }


    .auth-hero > p {
        font-size: 14px;

        line-height: 1.65;
    }


    .hero-features {
        display: none;
    }


    .auth-card {
        padding:
            32px
            22px
            28px;

        border-radius: 18px;
    }


    .auth-logo {
        max-width: 180px;

        max-height: 65px;
    }


    .auth-brand {
        margin-bottom: 25px;
    }


    .auth-brand h2 {
        font-size: 23px;
    }


    .auth-brand p {
        font-size: 13px;
    }


    .form-control {
        min-height: 50px;

        font-size: 13px;
    }


    .form-options {
        align-items: flex-start;

        gap: 10px;
    }


    .remember-me,
    .forgot-link {
        font-size: 12px;
    }


    .auth-btn {
        min-height: 51px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media
    only screen
    and (max-width: 380px) {

    .auth-page {
        padding:
            25px
            12px;
    }


    .auth-card {
        padding:
            28px
            17px
            24px;
    }


    .auth-hero h1 {
        font-size: 29px;
    }


    .form-options {
        flex-direction: column;

        align-items: flex-start;
    }

}