﻿
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --his-teal: #0d6e6e;
    --his-teal-dk: #094f4f;
    --his-teal-lt: #e6f4f4;
    --his-green: #1a9e6e;
    --his-text: #1a1f2e;
    --his-muted: #6b7280;
    --his-border: #d1d9e0;
    --his-bg: #f4f7f9;
    --his-white: #ffffff;
    --his-radius: 14px;
    --his-shadow: 0 8px 40px rgba(13,110,110,.13);
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--his-bg);
    color: var(--his-text);
    min-height: 100vh;
}

/* ---- Split Layout ---- */
.his-split {
    display: flex;
    min-height: 100vh;
}

/* ---- LEFT PANEL ---- */
.his-panel-left {
    width: 42%;
    background: linear-gradient(145deg, var(--his-teal-dk) 0%, var(--his-teal) 60%, #1a7a7a 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 3.5rem;
    position: relative;
    overflow: hidden;
}

    .his-panel-left::before {
        content: '';
        position: absolute;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        border: 60px solid rgba(255,255,255,.05);
        top: -80px;
        right: -80px;
    }

    .his-panel-left::after {
        content: '';
        position: absolute;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        border: 40px solid rgba(255,255,255,.05);
        bottom: 60px;
        left: -60px;
    }

.his-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.his-logo-ring {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.his-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: .02em;
}

.his-tagline {
    position: relative;
    z-index: 1;
}

    .his-tagline h1 {
        font-family: 'Playfair Display', serif;
        font-size: 2.4rem;
        font-weight: 600;
        line-height: 1.25;
        color: #fff;
        margin-bottom: 1rem;
    }

    .his-tagline p {
        color: rgba(255,255,255,.75);
        font-size: .95rem;
        line-height: 1.65;
        max-width: 300px;
    }

.his-stats {
    display: flex;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.his-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.his-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}

.his-stat-label {
    font-size: .75rem;
    color: rgba(255,255,255,.6);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ---- RIGHT PANEL ---- */
.his-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.his-card {
    width: 100%;
    max-width: 420px;
    background: var(--his-white);
    border-radius: var(--his-radius);
    box-shadow: var(--his-shadow);
    padding: 2.5rem 2.5rem;
    border: 1px solid var(--his-border);
}

.his-card-header {
    margin-bottom: 1rem;
}

    .his-card-header h2 {
        font-family: 'Playfair Display', serif;
        font-size: 1.7rem;
        font-weight: 600;
        color: var(--his-text);
        margin-bottom: .4rem;
    }

    .his-card-header p {
        font-size: .875rem;
        color: var(--his-muted);
        line-height: 1.5;
    }

/* ---- Fields ---- */
.his-field {
    margin-bottom: 1.25rem;
}

    .his-field label {
        display: block;
        font-size: .8rem;
        font-weight: 600;
        color: var(--his-muted);
        text-transform: uppercase;
        letter-spacing: .07em;
        margin-bottom: .5rem;
    }

.his-input-group {
    display: flex;
    border: 1.5px solid var(--his-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s;
}

    .his-input-group:focus-within {
        border-color: var(--his-teal);
        box-shadow: 0 0 0 3px rgba(13,110,110,.1);
    }

.his-prefix {
    background: var(--his-teal-lt);
    color: var(--his-teal-dk);
    font-weight: 600;
    font-size: .9rem;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    border-right: 1.5px solid var(--his-border);
    white-space: nowrap;
}

.his-input-group input,
input.his-otp-input {
    width: 100%;
    border: none;
    outline: none;
    padding: .85rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--his-text);
    background: transparent;
}

input.his-otp-input {
    border: 1.5px solid var(--his-border);
    border-radius: 10px;
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: .4em;
    transition: border-color .2s;
}

    input.his-otp-input:focus {
        border-color: var(--his-teal);
        box-shadow: 0 0 0 3px rgba(13,110,110,.1);
        outline: none;
    }

/* ---- Buttons ---- */
.his-btn {
    width: 100%;
    padding: .9rem 1.5rem;
    background: var(--his-teal);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .1s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(13,110,110,.25);
    margin-top: .5rem;
}

    .his-btn:hover {
        background: var(--his-teal-dk);
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(13,110,110,.3);
    }

    .his-btn:active {
        transform: translateY(0);
    }

.his-btn-success {
    background: var(--his-green);
    box-shadow: 0 4px 14px rgba(26,158,110,.25);
}

    .his-btn-success:hover {
        background: #157a55;
        box-shadow: 0 6px 20px rgba(26,158,110,.3);
    }

/* ---- OTP Notice ---- */
.his-otp-notice {
    font-size: .875rem;
    color: var(--his-muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

    .his-otp-notice strong {
        color: var(--his-text);
    }

.his-link {
    background: none;
    border: none;
    color: var(--his-teal);
    font-family: 'DM Sans', sans-serif;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* ---- Resend ---- */
.his-resend {
    text-align: center;
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--his-muted);
}

/* ---- Alert ---- */
.his-alert {
    margin-top: 1rem;
    padding: .85rem 1rem;
    border-radius: 8px;
    font-size: .875rem;
    font-weight: 500;
}

    .his-alert.his-danger {
        background: #fef2f2;
        color: #b91c1c;
        border: 1px solid #fca5a5;
    }

    .his-alert.his-warning {
        background: #fffbeb;
        color: #92400e;
        border: 1px solid #fcd34d;
    }

    .his-alert.his-success {
        background: #f0fdf4;
        color: #15803d;
        border: 1px solid #86efac;
    }

/* ---- Spinner ---- */
.his-spinner {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.his-spin-ring {
    width: 28px;
    height: 28px;
    border: 3px solid var(--his-teal-lt);
    border-top-color: var(--his-teal);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Utilities ---- */
.his-hidden {
    display: none !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .his-split {
        flex-direction: column;
    }

    .his-panel-left {
        width: 100%;
        padding: 2rem;
        min-height: 220px;
    }

    .his-tagline h1 {
        font-size: 1.6rem;
    }

    .his-stats {
        gap: 1.5rem;
    }

    .his-card {
        padding: 1.75rem;
    }
}


/* ---- Profile Selection Cards ---- */
.his-profile-card {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: .85rem 1rem;
    background: var(--his-white);
    border: 1.5px solid var(--his-border);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: border-color .18s, box-shadow .18s, background .18s;
    font-family: 'DM Sans', sans-serif;
}

    .his-profile-card:hover {
        border-color: var(--his-teal);
        background: var(--his-teal-lt);
        box-shadow: 0 2px 12px rgba(13,110,110,.1);
    }

.his-profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--his-teal);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.his-profile-info {
    flex: 1;
    min-width: 0;
}

.his-profile-name {
    font-size: .95rem;
    font-weight: 600;
    color: var(--his-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.his-profile-meta {
    font-size: .78rem;
    color: var(--his-muted);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.his-profile-dot {
    opacity: .4;
}

.his-profile-date {
    font-size: .73rem;
    color: var(--his-teal);
    margin-top: 3px;
    font-weight: 500;
}

.his-profile-arrow {
    color: var(--his-teal);
    opacity: .5;
    flex-shrink: 0;
    transition: opacity .15s, transform .15s;
}

.his-profile-card:hover .his-profile-arrow {
    opacity: 1;
    transform: translateX(3px);
}

.his-login-toggle {
    display: flex;
    background: var(--his-teal-lt);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
    margin-bottom: 1.25rem;
}

.his-toggle-btn {
    flex: 1;
    padding: .5rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--his-muted);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: .875rem;
    cursor: pointer;
    transition: background .2s, color .2s;
}

    .his-toggle-btn.his-toggle-active {
        background: var(--his-white);
        color: var(--his-teal-dk);
        box-shadow: 0 1px 4px rgba(0,0,0,.1);
    }


#emp-username {
    width: 100%;
    border: 1.5px solid var(--his-border);
    border-radius: 10px;
    padding: .85rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color .2s;
}

    #emp-username:focus {
        border-color: var(--his-teal);
        box-shadow: 0 0 0 3px rgba(13,110,110,.1);
    }

/* ---- Header row (toggle + help button) ---- */

.his-tutorial-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: .6rem;
    background: none;
    border: none;
    color: var(--his-teal);
    font-family: 'DM Sans', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

    .his-tutorial-link:hover {
        color: var(--his-teal-dk);
        text-decoration: underline;
    }

/* ---- Tutorial Modal ---- */
.his-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 25, .55);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1.5rem;
    animation: his-fade-in .18s ease-out;
}

@keyframes his-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.his-modal-box {
    width: 100%;
    max-width: 640px;
    background: var(--his-white);
    border-radius: var(--his-radius);
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    overflow: hidden;
    animation: his-pop-in .2s ease-out;
}

@keyframes his-pop-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.his-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--his-border);
}

    .his-modal-header h3 {
        font-family: 'Playfair Display', serif;
        font-size: 1.2rem;
        font-weight: 600;
        color: var(--his-text);
    }

.his-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--his-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}

    .his-modal-close:hover {
        background: var(--his-teal-lt);
        color: var(--his-teal-dk);
    }

.his-modal-video-wrap {
    background: #000;
    aspect-ratio: 16 / 9;
    width: 100%;
}

.his-tutorial-video {
    width: 100%;
    height: 100%;
    display: block;
}

.his-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    flex-wrap: wrap;
}

    .his-modal-footer span {
        font-size: .8rem;
        color: var(--his-muted);
    }

.his-btn-modal-close {
    width: auto;
    margin-top: 0;
    padding: .6rem 1.3rem;
    font-size: .875rem;
}

@media (max-width: 480px) {
    .his-modal-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .his-btn-modal-close {
        width: 100%;
    }
}

.his-fab-help {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: var(--his-teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(13,110,110,.35);
    z-index: 500;
    transition: background .18s, transform .15s, box-shadow .18s;
    animation: his-fab-pulse 2.4s ease-in-out infinite;
}

    .his-fab-help:hover {
        background: var(--his-teal-dk);
        transform: translateY(-3px) scale(1.05);
        box-shadow: 0 10px 26px rgba(13,110,110,.4);
    }

    .his-fab-help:active {
        transform: translateY(-1px) scale(1);
    }

@keyframes his-fab-pulse {
    0%, 100% {
        box-shadow: 0 6px 20px rgba(13,110,110,.35), 0 0 0 0 rgba(13,110,110,.4);
    }

    50% {
        box-shadow: 0 6px 20px rgba(13,110,110,.35), 0 0 0 10px rgba(13,110,110,0);
    }
}

@media (max-width: 480px) {
    .his-fab-help {
        right: 18px;
        bottom: 18px;
        width: 48px;
        height: 48px;
    }
}




.his-locations {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 14px 0 4px;
}

.his-location-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
    backdrop-filter: blur(4px);
}

    .his-location-chip:hover {
        background: rgba(255, 255, 255, 0.20);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-1px);
    }

    .his-location-chip svg {
        flex-shrink: 0;
        opacity: 0.9;
    }