﻿/* =========================================================
   TRIGUN CBT — LOGIN PAGE
   MODERN / PROFESSIONAL REFRESH
========================================================= */

:root {
    --primary: #1769e0;
    --primary-light: #3b82f6;
    --primary-dark: #0f4fb0;
    --purple: #7c3aed;
    --dark: #102b5c;
    --text: #182846;
    --muted: #64748b;
    --white: #ffffff;
    --border: #d9e4f2;
    --footer-height: 40px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-sm: 0 4px 12px rgba(30, 65, 110, .06);
    --shadow-md: 0 10px 28px rgba(30, 65, 110, .12);
    --shadow-lg: 0 24px 60px rgba(29, 65, 110, .18), 0 6px 20px rgba(29, 65, 110, .08);
    --ease: cubic-bezier(.4, 0, .2, 1);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    background: #f5f9ff;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}


/* =========================================================
   MAIN PAGE
========================================================= */

.auth-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #f5f9ff;
}

.auth-container {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--footer-height));
    overflow: hidden;
}


/* =========================================================
   LEFT PANEL — HERO BACKGROUND
========================================================= */

.auth-left {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 28px 55px;
    overflow: hidden;
    color: var(--dark);
    background-image: url('../Images/hero5.jpg');
    background-size: cover;
    background-position: 68% center;
    background-repeat: no-repeat;
}

    /* Soft readability wash — subtle enough to keep the artwork visible,
   strong enough that text never fights the image underneath it */
    .auth-left::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient( 100deg, rgba(245, 249, 255, .55) 0%, rgba(245, 249, 255, .40) 30%, rgba(245, 249, 255, .18) 48%, rgba(245, 249, 255, 0) 62% );
        z-index: 1;
    }


/* =========================================================
   TOP BRAND
========================================================= */

.auth-brand {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    padding: 7px 16px 7px 7px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid rgba(255, 255, 255, .98);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    animation: fadeSlideDown .5s var(--ease) both;
}

.brand-logo {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 12px;
}

    .brand-logo img {
        width: 47px;
        height: auto;
        object-fit: contain;
    }

.auth-brand h4 {
    margin: 0;
    color: #142c55;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

    .auth-brand h4 span {
        color: var(--primary);
    }

.auth-brand p {
    margin: 3px 0 0;
    color: #71809a;
    font-size: 10px;
    line-height: 1.2;
}

.brand-by {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {
    position: relative;
    z-index: 8;
    width: 520px;
    max-width: 42vw;
    margin-top: 46px;
    animation: fadeSlideUp .6s .1s var(--ease) both;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #1976e8, #397df1);
    border-radius: var(--radius-pill);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    box-shadow: 0 7px 18px rgba(23, 105, 224, .22);
}

.auth-heading {
    margin: 0;
    color: #102b5c;
    font-size: clamp(34px, 3.4vw, 48px);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -1.2px;
    text-shadow: 0 2px 14px rgba(255, 255, 255, .9);
}

.text-gradient {
    display: inline-block;
    background: linear-gradient(90deg, #1769e0 0%, #357cf2 48%, #8246ed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 6px rgba(255, 255, 255, .55));
}

.auth-subtext {
    width: 480px;
    max-width: 100%;
    margin: 14px 0 20px;
    color: #223a63;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(255, 255, 255, .9);
}


/* =========================================================
   FEATURE LIST
========================================================= */

.feature-list {
    width: 520px;
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

    .feature-list li {
        min-height: 72px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        background: rgba(255, 255, 255, .96);
        border: 1px solid rgba(230, 240, 255, .95);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: transform .22s var(--ease), box-shadow .22s var(--ease);
    }

        .feature-list li:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
        }

.feature-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(135deg, #edf5ff, #ffffff);
    color: var(--primary);
    font-size: 15px;
    box-shadow: 0 5px 12px rgba(23, 105, 224, .12);
}

.feature-list h6 {
    margin: 0 0 3px;
    color: #172d52;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.2;
}

.feature-list span {
    display: block;
    color: #55667a;
    font-size: 9.5px;
    line-height: 1.35;
}


/* =========================================================
   PROTECTED CHIP
========================================================= */

.floating-chip {
    position: absolute;
    left: 55px;
    bottom: 24px;
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    background: rgba(16, 43, 92, .92);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: 0 10px 22px rgba(16, 43, 92, .25);
}


/* =========================================================
   RIGHT LOGIN AREA
========================================================= */

.auth-right {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 30;
    width: 390px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 38px 12px 12px;
    pointer-events: none;
}

    .auth-right .glass-card {
        pointer-events: auto;
    }

.glass-card {
    width: 100%;
    max-width: 365px;
    max-height: calc(100vh - 48px);
    padding: 24px 34px 26px;
    background: rgba(255, 255, 255, .99);
    border: 1px solid rgba(255, 255, 255, .98);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    scrollbar-width: none;
    animation: fadeSlideLeft .55s .05s var(--ease) both;
}

    .glass-card::-webkit-scrollbar {
        display: none;
    }


/* =========================================================
   LOGIN LOGO
========================================================= */

.login-brand {
    width: 100%;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px 5px;
    margin-bottom: 4px;
    background: #ffffff;
    border-radius: var(--radius-md);
}

    .login-brand img {
        width: 190px;
        height: 55px;
        object-fit: contain;
    }


/* =========================================================
   LOGIN TITLE
========================================================= */

.login-title {
    margin: 0 0 2px;
    text-align: center;
    color: #172541;
    font-size: 22px;
    font-weight: 800;
}

.glass-subtext {
    margin: 0 0 9px;
    text-align: center;
    color: #73819a;
    font-size: 12.5px;
}


/* =========================================================
   FORM
========================================================= */

.form-group-glass {
    margin-bottom: 8px;
}

    .form-group-glass label {
        display: block;
        margin-bottom: 6px;
        color: #172541;
        font-size: 12px;
        font-weight: 700;
    }

.input-icon-wrap {
    position: relative;
    width: 100%;
}

    .input-icon-wrap > i:first-child {
        position: absolute;
        left: 14px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 2;
        color: #91a2c0;
        font-size: 13px;
    }

.form-control-glass {
    width: 100%;
    height: 46px;
    padding: 0 42px;
    background: #f3f7fd;
    border: 1px solid #d2deef;
    border-radius: 12px;
    color: #182846;
    font-size: 13.5px;
    outline: none;
    box-shadow: none;
    transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}

    .form-control-glass::placeholder {
        color: #9aa8bc;
    }

    .form-control-glass:focus {
        background: #ffffff;
        border-color: var(--primary-light);
        box-shadow: 0 0 0 4px rgba(74, 134, 239, .12);
    }

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    color: #9aa8bc;
    cursor: pointer;
    font-size: 13px;
    transition: color .2s var(--ease);
}

    .toggle-password:hover {
        color: var(--primary);
    }


/* =========================================================
   REMEMBER / FORGOT
========================================================= */

.form-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 16px;
}

.remember-me-check {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #6c7b91;
    font-size: 11.5px;
}

    .remember-me-check input {
        width: 15px;
        height: 15px;
        margin: 0;
        accent-color: var(--primary);
    }

.forgot-link {
    color: #246cf0;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: color .2s var(--ease);
}

    .forgot-link:hover {
        color: var(--purple);
    }


/* =========================================================
   SIGN IN BUTTON
========================================================= */

.login-button-pro {
    width: 100%;
}

.btn-signin {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(90deg, #2184ed 0%, #3978ed 48%, #8b43ed 100%);
    background-size: 160% 100%;
    background-position: 0% 0%;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: .2px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(44, 120, 232, .26);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-position .3s var(--ease);
}

    .btn-signin:hover {
        transform: translateY(-2px);
        background-position: 100% 0%;
        box-shadow: 0 16px 30px rgba(44, 120, 232, .32);
    }

    .btn-signin:focus-visible {
        outline: 3px solid rgba(74, 134, 239, .45);
        outline-offset: 2px;
    }

    .btn-signin i {
        font-size: 14px;
    }


/* =========================================================
   COMPANY / CANDIDATE SWITCH
========================================================= */

.auth-role-switch {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.auth-role-btn {
    flex: 1;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    background: #ffffff;
    border: 1px solid #d9e3f0;
    border-radius: 13px;
    color: #182846;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}

    .auth-role-btn:hover {
        color: var(--primary);
        text-decoration: none;
        background: #f8fbff;
        border-color: #b9d1f3;
        transform: translateY(-2px);
    }

.auth-role-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1769e0, #7548ef);
    color: #ffffff;
    font-size: 13px;
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.secure-note {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    padding: 10px 12px;
    background: #f1f7ff;
    border: 1px solid #d5e5fa;
    border-radius: 11px;
    color: #718098;
    font-size: 9.5px;
    line-height: 1.35;
}

    .secure-note > i {
        color: var(--primary);
        font-size: 16px;
    }

    .secure-note strong {
        display: block;
        margin-bottom: 2px;
        color: #2053a4;
        font-size: 10.5px;
    }


/* =========================================================
   FOOTER
========================================================= */

.auth-footer {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 100;
    width: 100%;
    height: var(--footer-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: rgba(249, 251, 255, .98);
    border-top: 1px solid #dce5f0;
    box-shadow: 0 -2px 10px rgba(30, 65, 110, .05);
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .footer-badges span {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #65758e;
        font-size: 9px;
        white-space: nowrap;
    }

    .footer-badges i {
        color: #377ff0;
        font-size: 10px;
    }

.footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #728198;
    font-size: 9px;
    white-space: nowrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-brand-logo {
    width: 68px;
    height: 21px;
    object-fit: contain;
}

.footer-divider {
    color: #cfd9e7;
}

.footer-right p {
    margin: 0;
    color: #728198;
    font-size: 9px;
}


/* =========================================================
   FORGOT PASSWORD MODAL
========================================================= */

.modal-glass {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 35, 70, .45);
    backdrop-filter: blur(3px);
}

.modal-glass-dialog {
    width: 100%;
    max-width: 420px;
}

.glass-modal {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: visible;
    box-shadow: 0 25px 70px rgba(0, 0, 0, .22);
    animation: fadeSlideUp .3s var(--ease) both;
}

.glass-modal-icon {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 10px 25px rgba(23, 105, 224, .28);
}


.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe4f0;
    border-radius: 50%;
    background: #f7faff;
    color: #687991;
    cursor: pointer;
    transition: background .2s var(--ease), color .2s var(--ease);
    z-index: 20;
    pointer-events: auto; /* 👈 ensures it always receives clicks, even if a parent sets pointer-events:none somewhere */
}

    .modal-close:hover {
        background: #eef4ff;
        color: var(--primary);
    }

    .modal-close:active {
        background: #e2ecff; /* 👈 optional: gives a visible "pressed" state so you can visually confirm the click registered */
        transform: scale(0.95);
        transition: background .1s, transform .1s;
    }

.glass-modal-icon {
    pointer-events: none; /* 👈 clicks ko through jaane do */
}

.glass-modal,
.modal-glass-dialog {
    overflow: visible; /* agar overflow:hidden set hai to hata do ya visible karo */
}

.glass-modal .modal-body {
    padding: 38px 30px 10px;
    text-align: center;
}

    .glass-modal .modal-body h5 {
        margin: 0 0 5px;
        color: #182846;
        font-size: 19px;
        font-weight: 800;
    }

    .glass-modal .modal-body .glass-subtext {
        margin-bottom: 20px;
    }

.glass-modal .modal-footer {
    display: flex;
    gap: 10px;
    padding: 8px 30px 25px;
    border: 0;
}

.btn-modal-primary,
.btn-modal-secondary {
    flex: 1;
    height: 42px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.btn-modal-primary {
    border: none;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(23, 105, 224, .22);
}

    .btn-modal-primary:hover {
        transform: translateY(-2px);
    }

.btn-modal-secondary {
    border: 1px solid #d5dfec;
    background: #f8faff;
    color: #263956;
}


/* =========================================================
   MOTION
========================================================= */

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeSlideLeft {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* =========================================================
   LARGE SCREEN  (>=1400px)
========================================================= */

@media (min-width: 1400px) {
    .auth-left {
        padding-left: 65px;
    }

    .hero-content {
        width: 560px;
        margin-top: 50px;
    }

    .feature-list {
        width: 550px;
    }

    .auth-right {
        width: 410px;
        padding-right: 42px;
    }

    .glass-card {
        max-width: 375px;
    }
}


/* =========================================================
   1200 – 1399
========================================================= */

@media (min-width: 1200px) and (max-width: 1399px) {
    .auth-left {
        padding-left: 45px;
    }

    .hero-content {
        width: 490px;
        max-width: 43vw;
        margin-top: 35px;
    }

    .auth-heading {
        font-size: 42px;
    }

    .feature-list {
        width: 490px;
    }

    .auth-right {
        width: 380px;
        padding-right: 28px;
    }

    .glass-card {
        max-width: 355px;
        padding-left: 32px;
        padding-right: 32px;
    }
}


/* =========================================================
   TABLET  (<=991px)
========================================================= */

@media (max-width: 991px) {
    html, body {
        overflow: auto;
    }

    .auth-page,
    .auth-container {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .auth-left {
        position: fixed;
        width: 100%;
        height: 100vh;
        padding: 20px 25px;
        background-position: 60% center;
    }

        .auth-left::before {
            background: linear-gradient( 100deg, rgba(245, 249, 255, .78) 0%, rgba(245, 249, 255, .60) 35%, rgba(245, 249, 255, .30) 60%, rgba(245, 249, 255, 0) 82% );
        }

    .hero-content {
        width: 55%;
        max-width: 55%;
        margin-top: 30px;
    }

    .auth-heading {
        font-size: 36px;
    }

    .feature-list {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .auth-right {
        position: relative;
        width: 100%;
        min-height: 100vh;
        height: auto;
        padding: 50px 20px;
        background: rgba(255, 255, 255, .08);
    }

    .glass-card {
        max-width: 400px;
        max-height: none;
    }

    .auth-footer {
        display: none;
    }
}


/* =========================================================
   MOBILE  (<=600px)
========================================================= */

@media (max-width: 600px) {
    .auth-left {
        padding: 15px;
        background-position: center center;
    }

        .auth-left::before {
            background: linear-gradient( 180deg, rgba(245, 249, 255, .92) 0%, rgba(245, 249, 255, .78) 55%, rgba(245, 249, 255, .45) 100% );
        }

    .auth-brand {
        transform: scale(.85);
        transform-origin: left top;
    }

    .hero-content {
        display: none;
    }

    .floating-chip {
        display: none;
    }

    .auth-right {
        padding: 25px 15px;
    }

    .glass-card {
        max-width: 390px;
        padding: 22px 20px;
        animation: fadeSlideUp .5s var(--ease) both;
    }

    .login-brand {
        height: 60px;
    }

        .login-brand img {
            width: 175px;
        }

    .login-title {
        font-size: 20px;
    }

    .auth-footer {
        display: none;
    }
}
