﻿/* GEN-EHR dark login — matches product login screenshot */

:root {
    --gen-ehr-bg: #020a10;
    --gen-ehr-bg-elevated: #07131c;
    --gen-ehr-card: rgba(8, 22, 32, 0.92);
    --gen-ehr-card-border: rgba(45, 212, 191, 0.16);
    --gen-ehr-teal: #2dd4bf;
    --gen-ehr-teal-bright: #5eead4;
    --gen-ehr-teal-deep: #0f766e;
    --gen-ehr-teal-mid: #14b8a6;
    --gen-ehr-text: #f8fafc;
    --gen-ehr-muted: #94a3b8;
    --gen-ehr-muted-soft: #7dd3c7;
    --gen-ehr-input-bg: rgba(2, 12, 20, 0.85);
    --gen-ehr-input-border: rgba(148, 163, 184, 0.22);
    --gen-ehr-danger: #fb7185;
    --gen-ehr-radius: 14px;
    --gen-ehr-radius-sm: 10px;
}

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

body:has(.gen-ehr-login) {
    margin: 0;
    background: var(--gen-ehr-bg) !important;
    color: var(--gen-ehr-text);
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

body:has(.gen-ehr-login) > .container-fluid {
    padding: 0 !important;
    max-width: none !important;
}

body:has(.gen-ehr-login) main.pb-3 {
    padding-bottom: 0 !important;
}

.gen-ehr-login {
    min-height: 100vh;
    background:
        radial-gradient(ellipse 80% 50% at 70% 20%, rgba(20, 184, 166, 0.12), transparent 55%),
        radial-gradient(ellipse 60% 45% at 85% 75%, rgba(13, 148, 136, 0.1), transparent 50%),
        linear-gradient(160deg, #020a10 0%, #041018 45%, #061822 100%);
    color: var(--gen-ehr-text);
}

.gen-ehr-alert-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(45, 212, 191, 0.12);
    background: rgba(2, 10, 16, 0.85);
    backdrop-filter: blur(8px);
}

.gen-ehr-alert-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gen-ehr-muted);
    font-size: 12.5px;
    letter-spacing: 0.01em;
    text-align: center;
}

.gen-ehr-alert-inner strong {
    color: #e2e8f0;
    font-weight: 600;
}

.gen-ehr-alert-icon {
    width: 16px;
    height: 16px;
    color: var(--gen-ehr-teal);
    flex-shrink: 0;
}

.gen-ehr-shell {
    display: grid;
    grid-template-columns: minmax(360px, 460px) 1fr;
    gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 36px 40px 48px;
    min-height: calc(100vh - 44px);
    align-items: center;
}

.gen-ehr-login-panel {
    display: flex;
    justify-content: center;
}

.gen-ehr-login-card {
    width: 100%;
    max-width: 420px;
    background: var(--gen-ehr-card);
    border: 1px solid var(--gen-ehr-card-border);
    border-radius: 22px;
    padding: 36px 34px 28px;
    box-shadow:
        0 0 0 1px rgba(45, 212, 191, 0.04),
        0 24px 60px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
}

.gen-ehr-brand {
    margin-bottom: 28px;
}

.gen-ehr-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 8px;
    /* Knock out black logo background on dark card */
    mix-blend-mode: screen;
}

.gen-ehr-tagline {
    margin: 0;
    color: var(--gen-ehr-muted-soft);
    font-size: 13px;
    opacity: 0.85;
}

.gen-ehr-login-header {
    margin-bottom: 26px;
}

.gen-ehr-login-header h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1.2;
}

.gen-ehr-login-header p {
    margin: 0;
    color: var(--gen-ehr-muted);
    font-size: 14.5px;
}

.gen-ehr-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gen-ehr-validation {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(251, 113, 133, 0.1);
    border: 1px solid rgba(251, 113, 133, 0.25);
    color: var(--gen-ehr-danger);
    font-size: 13px;
}

.gen-ehr-validation.validation-summary-valid,
.gen-ehr-validation:empty {
    display: none !important;
}

.gen-ehr-validation ul {
    margin: 0;
    padding-left: 18px;
}

.gen-ehr-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.gen-ehr-field label {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
}

.gen-ehr-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.gen-ehr-input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #64748b;
    pointer-events: none;
    z-index: 1;
}

.gen-ehr-input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    border-radius: var(--gen-ehr-radius-sm);
    border: 1px solid var(--gen-ehr-input-border);
    background: var(--gen-ehr-input-bg) !important;
    color: var(--gen-ehr-text) !important;
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    box-shadow: none !important;
}

.gen-ehr-input-password {
    padding-right: 46px;
}

.gen-ehr-input::placeholder {
    color: #64748b;
}

.gen-ehr-input:focus {
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12) !important;
}

.gen-ehr-eye-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    padding: 0;
}

.gen-ehr-eye-btn:hover {
    color: var(--gen-ehr-teal);
}

.gen-ehr-eye-btn svg {
    width: 18px;
    height: 18px;
}

.is-hidden {
    display: none !important;
}

.gen-ehr-field-error {
    color: var(--gen-ehr-danger);
    font-size: 12.5px;
}

.gen-ehr-field-error:empty {
    display: none;
}

.gen-ehr-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
}

.gen-ehr-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--gen-ehr-muted);
    font-size: 13.5px;
    cursor: pointer;
    user-select: none;
}

.gen-ehr-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--gen-ehr-teal-mid);
    cursor: pointer;
}

.gen-ehr-link {
    color: var(--gen-ehr-teal);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
}

.gen-ehr-link:hover {
    color: var(--gen-ehr-teal-bright);
    text-decoration: underline;
}

.gen-ehr-btn-primary {
    margin-top: 6px;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: var(--gen-ehr-radius-sm);
    background: linear-gradient(90deg, #2dd4bf 0%, #0f766e 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.28);
    transition: filter 0.18s ease, transform 0.18s ease;
}

.gen-ehr-btn-primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.gen-ehr-btn-primary:active {
    transform: translateY(0);
}

.gen-ehr-divider {
    position: relative;
    text-align: center;
    margin: 20px 0 16px;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.gen-ehr-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: rgba(148, 163, 184, 0.18);
}

.gen-ehr-divider span {
    position: relative;
    padding: 0 12px;
    background: #0b1822;
}

.gen-ehr-btn-microsoft {
    width: 100%;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: var(--gen-ehr-radius-sm);
    border: 1px solid rgba(226, 232, 240, 0.28);
    background: rgba(2, 12, 20, 0.65);
    color: #e2e8f0;
    font-size: 14.5px;
    font-weight: 550;
    cursor: pointer;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.gen-ehr-btn-microsoft:hover:not(:disabled) {
    border-color: rgba(226, 232, 240, 0.5);
    background: rgba(15, 30, 42, 0.9);
}

.gen-ehr-btn-microsoft:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.gen-ehr-ms-logo {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.gen-ehr-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 0;
    color: #64748b;
    font-size: 12.5px;
}

.gen-ehr-secure svg {
    width: 14px;
    height: 14px;
    color: var(--gen-ehr-teal);
}

.gen-ehr-showcase {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    padding: 24px 8px 24px 12px;
}

.gen-ehr-showcase-art {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.gen-ehr-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
}

.gen-ehr-glow-a {
    width: 320px;
    height: 320px;
    right: 8%;
    top: 8%;
    background: rgba(45, 212, 191, 0.18);
}

.gen-ehr-glow-b {
    width: 280px;
    height: 280px;
    right: 18%;
    bottom: 10%;
    background: rgba(15, 118, 110, 0.22);
}

.gen-ehr-art-patient {
    position: absolute;
    width: 240px;
    right: 18%;
    top: 6%;
    opacity: 0.7;
    filter: drop-shadow(0 0 18px rgba(45, 212, 191, 0.25));
}

.gen-ehr-art-anatomy {
    position: absolute;
    width: 190px;
    right: 4%;
    top: 18%;
    opacity: 0.55;
    filter: drop-shadow(0 0 22px rgba(45, 212, 191, 0.2));
}

.gen-ehr-art-stethoscope {
    position: absolute;
    width: 220px;
    right: 10%;
    bottom: 8%;
    opacity: 0.55;
    filter: drop-shadow(0 0 16px rgba(45, 212, 191, 0.22));
}

.gen-ehr-ecg {
    stroke-dasharray: 180;
    animation: gen-ehr-ecg 4.5s ease-in-out infinite;
}

@keyframes gen-ehr-ecg {
    0%, 100% { stroke-dashoffset: 0; opacity: 0.55; }
    50% { stroke-dashoffset: -40; opacity: 1; }
}

.gen-ehr-showcase-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.gen-ehr-showcase-content h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 3.4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
}

.gen-ehr-showcase-copy {
    margin: 0 0 32px;
    max-width: 520px;
    color: #9fb6c3;
    font-size: 15.5px;
    line-height: 1.55;
}

.gen-ehr-feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 36px;
}

.gen-ehr-feature-card {
    background: rgba(7, 22, 32, 0.72);
    border: 1px solid rgba(45, 212, 191, 0.14);
    border-radius: 16px;
    padding: 18px 16px 16px;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.gen-ehr-feature-card:hover {
    border-color: rgba(45, 212, 191, 0.35);
    transform: translateY(-2px);
}

.gen-ehr-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--gen-ehr-teal);
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.gen-ehr-feature-icon svg {
    width: 18px;
    height: 18px;
}

.gen-ehr-feature-card h3 {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 650;
    color: #f1f5f9;
}

.gen-ehr-feature-card p {
    margin: 0;
    color: #8ea3b2;
    font-size: 13px;
    line-height: 1.45;
}

.gen-ehr-compliance {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    align-items: center;
}

.gen-ehr-compliance-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gen-ehr-teal);
    font-size: 13px;
    font-weight: 500;
}

.gen-ehr-compliance-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .gen-ehr-shell {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 24px 20px 40px;
        align-items: start;
    }

    .gen-ehr-login-card {
        max-width: 480px;
    }

    .gen-ehr-showcase {
        min-height: auto;
        padding: 8px 0 0;
    }

    .gen-ehr-art-patient,
    .gen-ehr-art-anatomy,
    .gen-ehr-art-stethoscope {
        opacity: 0.28;
    }

    .gen-ehr-showcase-content {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .gen-ehr-alert-inner {
        font-size: 11.5px;
        line-height: 1.4;
    }

    .gen-ehr-login-card {
        padding: 28px 20px 22px;
        border-radius: 18px;
    }

    .gen-ehr-login-header h1 {
        font-size: 24px;
    }

    .gen-ehr-feature-grid {
        grid-template-columns: 1fr;
    }

    .gen-ehr-compliance {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .gen-ehr-art-patient,
    .gen-ehr-art-anatomy,
    .gen-ehr-art-stethoscope {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gen-ehr-ecg,
    .gen-ehr-btn-primary,
    .gen-ehr-feature-card {
        animation: none !important;
        transition: none !important;
    }
}

/* ── Two-factor authentication ── */

.gen-ehr-2fa-card {
    text-align: left;
}

.gen-ehr-2fa-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gen-ehr-teal);
    background: rgba(45, 212, 191, 0.12);
    border: 1px solid rgba(45, 212, 191, 0.22);
}

.gen-ehr-2fa-icon svg {
    width: 24px;
    height: 24px;
}

.gen-ehr-2fa-header {
    text-align: center;
}

.gen-ehr-2fa-header h1 {
    font-size: 24px;
}

.gen-ehr-otp {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.gen-ehr-otp-input {
    width: 48px;
    height: 54px;
    flex: 1 1 0;
    max-width: 54px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
    border-radius: var(--gen-ehr-radius-sm);
    border: 1px solid var(--gen-ehr-input-border);
    background: var(--gen-ehr-input-bg) !important;
    color: var(--gen-ehr-text) !important;
    outline: none;
    box-shadow: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    caret-color: var(--gen-ehr-teal);
}

.gen-ehr-otp-input:focus {
    border-color: rgba(45, 212, 191, 0.55);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.12) !important;
}

.gen-ehr-2fa-hint {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 0;
    color: var(--gen-ehr-muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: left;
}

.gen-ehr-2fa-hint svg {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    color: var(--gen-ehr-teal);
    flex-shrink: 0;
}

.gen-ehr-2fa-remember {
    margin-top: 4px;
}

.gen-ehr-btn-primary.is-disabled,
.gen-ehr-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: none;
    transform: none;
    box-shadow: none;
}

.gen-ehr-btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    border-radius: var(--gen-ehr-radius-sm);
    border: 1px solid rgba(45, 212, 191, 0.35);
    background: transparent;
    color: var(--gen-ehr-teal);
    font-size: 14.5px;
    font-weight: 550;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.gen-ehr-btn-secondary:hover {
    border-color: rgba(45, 212, 191, 0.6);
    background: rgba(45, 212, 191, 0.08);
    color: var(--gen-ehr-teal-bright);
}

.gen-ehr-2fa-back {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    margin-top: 8px;
    padding-top: 16px;
    text-align: center;
}

.gen-ehr-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gen-ehr-muted);
    font-size: 14px;
    text-decoration: none;
}

.gen-ehr-back-link svg {
    width: 16px;
    height: 16px;
}

.gen-ehr-back-link:hover {
    color: var(--gen-ehr-teal);
}

@media (max-width: 640px) {
    .gen-ehr-otp {
        gap: 6px;
    }

    .gen-ehr-otp-input {
        height: 48px;
        font-size: 18px;
        max-width: 48px;
    }
}

