/* =========================================================
   PAN CORPORATE OFFICE
   Customer Authentication Page
   ========================================================= */

* {
    box-sizing: border-box;
}

:root {
    --primary: #0b8f72;
    --primary-dark: #067158;

    --dark: #102c46;
    --dark-2: #173b59;

    --text: #142b3d;
    --muted: #71808b;

    --border: #dfe5e8;

    --bg: #f5f7f8;

    --white: #ffffff;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 8% 15%,
            rgba(12, 143, 112, 0.07),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 85%,
            rgba(12, 143, 112, 0.06),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);
    font-family: 'Manrope', sans-serif;
}

button,
input {
    font-family: inherit;
}

a {
    text-decoration: none;
}


/* =========================================================
   PAGE
   ========================================================= */

.auth-page {
    min-height: 100vh;

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

    padding: 35px;
}

.auth-wrapper {
    width: 100%;
    max-width: 1180px;
    min-height: 690px;

    display: grid;
    grid-template-columns: 1fr 0.88fr;

    overflow: hidden;

    border: 1px solid rgba(16, 55, 47, 0.08);
    border-radius: 28px;

    background: #fff;

    box-shadow:
        0 35px 90px rgba(16, 50, 43, 0.13),
        0 8px 25px rgba(16, 50, 43, 0.05);
}


/* =========================================================
   LEFT BRAND PANEL
   PREMIUM PAN CORPORATE STYLE
   ========================================================= */

.brand-panel {
    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 48px;

    color: #142b40;

    background:
        radial-gradient(
            circle at 88% 10%,
            rgba(201, 155, 61, 0.18),
            transparent 30%
        ),
        radial-gradient(
            circle at 5% 92%,
            rgba(31, 73, 112, 0.10),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #f8f5ed 0%,
            #f2eee3 52%,
            #e9e4d8 100%
        );
}

.brand-panel::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -190px;
    top: -190px;

    border: 1px solid rgba(24, 54, 82, 0.08);

    border-radius: 50%;
}

.brand-panel::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    left: -150px;
    bottom: -160px;

    border: 1px solid rgba(190, 145, 54, 0.12);

    border-radius: 50%;
}

.brand-top,
.brand-content,
.brand-bottom {
    position: relative;
    z-index: 2;
}


/* =========================================================
   PAN LOGO - LARGE & PREMIUM
   ========================================================= */

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    width: 320px;
    height: 125px;

    padding: 0;

    border-radius: 0;

    background: transparent;
    border: none;
    box-shadow: none;

    backdrop-filter: none;

    text-decoration: none;

    transition: all 0.25s ease;
}

.brand img {
    display: block;

    width: 300px;
    height: 115px;

    max-width: 300px;
    max-height: 115px;

    object-fit: contain;
    object-position: left center;

    filter:
        drop-shadow(0 5px 12px rgba(0, 0, 0, 0.12))
        drop-shadow(0 0 14px rgba(196, 145, 42, 0.18));
}

.brand:hover img {
    transform: scale(1.02);

    filter:
        drop-shadow(0 6px 14px rgba(0, 0, 0, 0.15))
        drop-shadow(0 0 18px rgba(196, 145, 42, 0.25));
}


/* =========================================================
   BRAND CONTENT
   ========================================================= */

.brand-content {
    max-width: 500px;

    margin-top: auto;
    margin-bottom: auto;

    padding: 55px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 22px;

    padding: 8px 13px;

    border: 1px solid rgba(25, 61, 91, 0.14);

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.58);

    color: #28445d;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 1.3px;

    text-transform: uppercase;

    box-shadow:
        0 4px 14px rgba(25, 45, 65, 0.05);
}

.eyebrow-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #c69a3d;

    box-shadow:
        0 0 0 4px rgba(198, 154, 61, 0.14);
}

.brand-content h1 {
    margin: 0;

    color: #102c46;

    font-size: clamp(2.5rem, 4vw, 4rem);

    line-height: 1.05;

    letter-spacing: -2.5px;
}

.brand-content h1 span {
    color: #bd8d2f;
}

.brand-content p {
    max-width: 450px;

    margin: 23px 0 0;

    color: #536574;

    font-size: 1rem;

    line-height: 1.8;
}


/* =========================================================
   FEATURE CARDS
   ========================================================= */

.feature-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 12px;

    margin-top: 35px;
}

.feature-card {
    padding: 16px;

    border: 1px solid rgba(25, 61, 91, 0.10);

    border-radius: 15px;

    background: rgba(255, 255, 255, 0.52);

    backdrop-filter: blur(10px);

    box-shadow:
        0 8px 22px rgba(28, 48, 65, 0.05);
}

.feature-icon {
    width: 34px;
    height: 34px;

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

    margin-bottom: 12px;

    border-radius: 10px;

    background: rgba(31, 73, 112, 0.09);

    color: #b98a2e;

    font-size: 0.85rem;
}

.feature-card strong {
    display: block;

    color: #17334c;

    font-size: 0.78rem;

    font-weight: 800;
}

.feature-card span {
    display: block;

    margin-top: 4px;

    color: #687985;

    font-size: 0.7rem;
}


/* =========================================================
   BRAND FOOTER
   ========================================================= */

.brand-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    color: #61717d;

    font-size: 0.74rem;
}

.secure-note i {
    color: #bd8d2f;
}

.vendor-link {
    color: #38536a;

    font-weight: 700;
}

.vendor-link:hover {
    color: #17334c;
}


/* =========================================================
   RIGHT FORM PANEL
   ========================================================= */

.form-panel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 55px 70px;

    background: #fff;
}

.auth-form-container {
    width: 100%;
    max-width: 410px;
}

.mobile-logo {
    display: none;
}


/* =========================================================
   FORM HEADING
   ========================================================= */

.form-heading {
    margin-bottom: 28px;
}

.form-heading .mini-label {
    margin-bottom: 8px;

    color: var(--primary);

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-heading h2 {
    margin: 0;

    color: var(--text);

    font-size: 2rem;
    line-height: 1.15;

    letter-spacing: -1.2px;
}

.form-heading p {
    margin: 9px 0 0;

    color: var(--muted);

    font-size: 0.86rem;
    line-height: 1.6;
}


/* =========================================================
   TABS
   ========================================================= */

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;

    margin-bottom: 30px;
    padding: 5px;

    border: 1px solid #e4ebe9;
    border-radius: 13px;

    background: #f5f8f7;
}

.tab-button {
    position: relative;

    padding: 11px 10px;

    cursor: pointer;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: #71807b;

    font-size: 0.82rem;
    font-weight: 800;

    transition: all 0.2s ease;
}

.tab-button.active {
    background: #fff;

    color: var(--dark);

    box-shadow:
        0 3px 12px rgba(19, 57, 49, 0.08);
}


/* =========================================================
   FORM VISIBILITY
   ========================================================= */

.form-panel {
    display: none;
}

.form-panel.active {
    display: block;
}


/* =========================================================
   ALERTS
   ========================================================= */

.alert {
    margin-bottom: 20px;

    padding: 13px 15px;

    border-radius: 11px;

    font-size: 0.78rem;
    line-height: 1.5;
}

.alert-success {
    border: 1px solid #b9ead3;

    background: #effcf5;

    color: #17633c;
}

.alert-error {
    border: 1px solid #f1c4c4;

    background: #fff5f5;

    color: #a32626;
}

.alert ul {
    margin: 0;

    padding-left: 18px;
}


/* =========================================================
   FORM FIELDS
   ========================================================= */

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;

    margin-bottom: 8px;

    color: #243a34;

    font-size: 0.76rem;
    font-weight: 800;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;

    top: 50%;
    left: 15px;

    z-index: 2;

    color: #81908c;

    font-size: 0.85rem;

    transform: translateY(-50%);

    pointer-events: none;
}

.input-group input {
    width: 100%;
    height: 50px;

    padding: 0 46px 0 43px;

    outline: none;

    border: 1px solid #d6e1de;
    border-radius: 11px;

    background: #fff;

    color: var(--text);

    font-size: 0.84rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.input-group input:hover {
    border-color: #b9cbc5;
}

.input-group input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 4px rgba(12, 143, 112, 0.09);
}

.input-group input::placeholder {
    color: #a8b3b0;
}


/* =========================================================
   PASSWORD EYE
   ========================================================= */

.eye-button {
    position: absolute;

    top: 50%;
    right: 11px;

    width: 32px;
    height: 32px;

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

    padding: 0;

    cursor: pointer;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #788884;

    transform: translateY(-50%);

    transition: all 0.2s ease;
}

.eye-button:hover {
    background: #f1f5f4;

    color: var(--primary);
}


/* =========================================================
   OPTIONS
   ========================================================= */

.options {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin: 5px 0 23px;

    color: #71807b;

    font-size: 0.75rem;
}

.remember-label {
    display: flex;
    align-items: center;

    gap: 8px;

    cursor: pointer;
}

.remember-label input {
    width: 15px;
    height: 15px;

    accent-color: var(--primary);

    cursor: pointer;
}

.options a {
    color: var(--primary);

    font-weight: 800;
}

.options a:hover {
    color: var(--primary-dark);
}


/* =========================================================
   MAIN BUTTON
   ========================================================= */

.main-button {
    width: 100%;
    height: 52px;

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

    gap: 10px;

    padding: 0 18px;

    cursor: pointer;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #0c9b79,
            #078467
        );

    color: white;

    font-size: 0.84rem;
    font-weight: 800;

    box-shadow:
        0 8px 20px rgba(8, 132, 103, 0.18);

    transition: all 0.2s ease;
}

.main-button i {
    font-size: 0.72rem;

    transition: transform 0.2s ease;
}

.main-button:hover {
    background:
        linear-gradient(
            135deg,
            #0a8e70,
            #06775e
        );

    box-shadow:
        0 11px 25px rgba(8, 132, 103, 0.25);

    transform: translateY(-1px);
}

.main-button:hover i {
    transform: translateX(3px);
}

.main-button:active {
    transform: translateY(0);
}


/* =========================================================
   TERMS
   ========================================================= */

.terms {
    margin: 18px 0 0;

    color: #84918e;

    font-size: 0.69rem;
    line-height: 1.65;

    text-align: center;
}

.terms a {
    color: var(--primary);

    font-weight: 700;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .auth-page {
        padding: 20px;
    }

    .auth-wrapper {
        grid-template-columns: 1fr;

        min-height: auto;
        max-width: 520px;

        border-radius: 22px;
    }

    .brand-panel {
        display: none;
    }

    .form-panel-wrapper {
        min-height: calc(100vh - 40px);

        padding: 40px 28px;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;

        margin-bottom: 38px;
    }

    .mobile-logo a {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 175px;
        height: 62px;

        padding: 8px 14px;

        border: 1px solid #e3ebe8;
        border-radius: 12px;

        background: #fff;
    }

    .mobile-logo img {
        display: block;
    
        width: 210px;
        height: 105px;
    
        max-width: 210px;
        max-height: 105px;
    
        object-fit: contain;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .auth-page {
        padding: 0;

        align-items: stretch;
    }

    .auth-wrapper {
        min-height: 100vh;

        border: 0;
        border-radius: 0;

        box-shadow: none;
    }

    .form-panel-wrapper {
        min-height: 100vh;

        padding: 30px 22px;
    }

    .mobile-logo {
        margin-bottom: 32px;
    }

    .form-heading h2 {
        font-size: 1.75rem;
    }

    .tabs {
        margin-bottom: 25px;
    }

    .field {
        margin-bottom: 16px;
    }

    .input-group input {
        height: 52px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 360px) {

    .form-panel-wrapper {
        padding-left: 17px;
        padding-right: 17px;
    }

    .form-heading h2 {
        font-size: 1.6rem;
    }

    .options {
        font-size: 0.7rem;
    }
}

/* =========================================================
   GOOGLE AUTHENTICATION
   ========================================================= */

.google-divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 22px 0;
}

.google-divider::before,
.google-divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: #e4ebe9;
}

.google-divider span {
    color: #94a19e;

    font-size: 0.68rem;
    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   GOOGLE BUTTON
   ========================================================= */

.google-button {
    width: 100%;
    height: 52px;

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

    gap: 11px;

    padding: 0 18px;

    cursor: pointer;

    border: 1px solid #d9e2df;
    border-radius: 11px;

    background: #ffffff;

    color: #243a34;

    font-size: 0.84rem;
    font-weight: 800;

    text-decoration: none;

    box-shadow:
        0 3px 10px rgba(20, 45, 38, 0.04);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.google-button:hover {
    border-color: #bfcfca;

    background: #fafcfb;

    color: #14231f;

    box-shadow:
        0 7px 18px rgba(20, 45, 38, 0.08);

    transform: translateY(-1px);

    text-decoration: none;
}

.google-button:active {
    transform: translateY(0);
}


/* =========================================================
   GOOGLE ICON
   ========================================================= */

.google-icon {
    width: 20px;
    height: 20px;

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

    flex-shrink: 0;
}

.google-icon svg {
    display: block;

    width: 20px !important;
    height: 20px !important;

    min-width: 20px;
    min-height: 20px;

    max-width: 20px;
    max-height: 20px;
}

