/* ==========================================================================
   Employee Portal - Sign In Styling
   Theme: Digital Bull Staff Blue (#00367D / #1E68D9)
   Matches Admin Login layout exactly with Employee Theme
   ========================================================================== */

:root {
    --db-blue: #00367D;
    --db-blue-hover: #002B66;
    --db-blue-light: #1E68D9;
    --db-blue-gradient: linear-gradient(165deg, #1E68D9 0%, #00367D 50%, #071529 100%);
    --app-dark-text: #172033;
    --app-muted: #8E9BAE;
    --app-border: #E2E8F0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--app-dark-text);
    background: linear-gradient(180deg, #F0F6FF 0%, #FFFFFF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewport-wrapper {
    width: 100%;
    max-width: 860px;
    padding: 2rem 1.25rem;
    margin: 0 auto;
}

/* Master Auth Card */
.auth-card-wrapper {
    background: #FFFFFF;
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(0, 54, 125, 0.12), 0 4px 18px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid rgba(200, 220, 245, 0.85);
    display: grid;
    grid-template-columns: 44% 56%;
}

/* Left Blue Hero Section */
.hero-left-pane {
    background: var(--db-blue-gradient);
    padding: 3.5rem 2.25rem;
    text-align: center;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Frosted Glass Icon Box */
.glass-icon-box {
    width: 82px;
    height: 82px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.glass-icon-svg {
    width: 38px;
    height: 38px;
    fill: #FFFFFF;
}

.hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin: 0 auto;
    max-width: 290px;
    font-weight: 400;
}

/* Right Form Section */
.form-right-pane {
    padding: 3rem 2.75rem 2.75rem;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Single LOGIN Tab */
.auth-tab-row {
    margin-bottom: 1.85rem;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 0.35rem;
}

.auth-tab-heading {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #172338;
    position: relative;
    display: inline-block;
    padding-bottom: 0.65rem;
    margin: 0;
}

.auth-tab-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 3.5px;
    background-color: var(--db-blue);
    border-radius: 3px;
}

/* Inputs & Groups */
.auth-input-group {
    margin-bottom: 1.35rem;
}

.auth-field-label {
    font-size: 0.74rem;
    font-weight: 800;
    color: #64748B;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
    display: block;
}

.auth-input-container {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 0 0.85rem;
    height: 52px;
    transition: all 0.2s ease;
    position: relative;
}

.auth-input-container.active-focus {
    border-color: var(--db-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 54, 125, 0.15) !important;
}

.auth-input-container.has-blue-border {
    border-color: var(--db-blue);
}

.auth-input-icon {
    font-size: 1.05rem;
    color: #94A3B8;
    margin-right: 0.65rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.auth-input-icon.blue-icon {
    color: var(--db-blue);
}

.auth-text-field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 500;
    color: #1E293B;
    outline: none;
    padding: 0;
    width: 100%;
}

.auth-text-field::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.btn-pwd-eye {
    background: none;
    border: none;
    color: #94A3B8;
    padding: 0.2rem;
    cursor: pointer;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.btn-pwd-eye:hover {
    color: var(--db-blue);
}

/* Error message label */
.auth-error-msg {
    color: #dc3545;
    font-size: 0.82rem;
    font-weight: 600;
    display: block;
    margin-top: 0.4rem;
}

/* Bottom Row & Submit Button */
.auth-bottom-action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.75rem;
}

.quick-demo-link {
    font-size: 0.76rem;
    color: var(--db-blue);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.quick-demo-link:hover {
    text-decoration: underline;
    color: var(--db-blue-hover);
}

.btn-main-login {
    background: #E2E8F0;
    color: #94A3B8;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 2rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 105px;
    height: 44px;
}

.btn-main-login.active-ready {
    background: var(--db-blue);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 54, 125, 0.35);
}

.btn-main-login.active-ready:hover {
    background: var(--db-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 54, 125, 0.45);
}

.btn-main-login:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

/* Bottom Meta Strip */
.bottom-security-meta {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.72rem;
    color: #94A3B8;
}

.bottom-security-meta a {
    color: var(--db-blue);
    text-decoration: none;
    font-weight: 600;
}

.bottom-security-meta a:hover {
    text-decoration: underline;
}

/* -------------------------------------------------------------
   MOBILE RESPONSIVENESS (< 768px)
   ------------------------------------------------------------- */
@media (max-width: 767px) {
    body {
        align-items: flex-start;
        padding: 1.5rem 1.25rem 2.5rem;
    }

    .viewport-wrapper {
        max-width: 440px;
        padding: 0;
    }

    .auth-card-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-left-pane {
        padding: 2.5rem 1.75rem 2.25rem;
    }

    .form-right-pane {
        padding: 2rem 1.5rem 1.75rem;
    }

    .hero-title {
        font-size: 1.7rem;
    }
}
