:root {
    --bs-primary: #01173c;
    --bs-primary-rgb: 1, 23, 60;
    --bs-link-color: #01173c;
    --bs-link-hover-color: #00cff7;
    --bs-body-font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    --bs-body-color: #444444;
    --bs-heading-color: #01173c;
    --guest-shell-radius: 6px;
    --guest-shell-max: min(640px, calc(100vw - 1.5rem));
    --guest-input-radius: 6px;
    --guest-input-border: #ccccce;
    --guest-input-border-hover: #5e6d80;
    --guest-input-placeholder: #5e6d80;
    --guest-input-text: #000000;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.btn-primary {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #01173c;
    --bs-btn-border-color: #01173c;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #022a5c;
    --bs-btn-hover-border-color: #022a5c;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #022a5c;
    --bs-btn-active-border-color: #022a5c;
    --bs-btn-focus-shadow-rgb: 1, 23, 60;
}

.btn-brand-cyan {
    --bs-btn-color: #ffffff;
    --bs-btn-bg: #00cff7;
    --bs-btn-border-color: #00cff7;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #00b8de;
    --bs-btn-hover-border-color: #00b8de;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #00a8cc;
    --bs-btn-active-border-color: #00a8cc;
    --bs-btn-focus-shadow-rgb: 0, 207, 247;
}

body.auth-page {
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.02em;
    position: relative;
    isolation: isolate;
    background-color: #071a32;
}

body.auth-page::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    z-index: -3;
    pointer-events: none;
    background-color: #082642;
    background-image: url('../img/medicover/background-image.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

body.auth-page::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: radial-gradient(
            130% 95% at 50% 115%,
            rgba(0, 207, 247, 0.42) 0%,
            rgba(0, 140, 200, 0.18) 28%,
            transparent 52%
    ),
    radial-gradient(
            95% 70% at 12% 18%,
            rgba(70, 140, 220, 0.28) 0%,
            transparent 48%
    ),
    radial-gradient(
            90% 60% at 92% 12%,
            rgba(0, 207, 247, 0.22) 0%,
            transparent 50%
    ),
    radial-gradient(
            85% 55% at 80% 22%,
            rgba(15, 55, 110, 0.45) 0%,
            transparent 58%
    ),
    linear-gradient(
            0deg,
            rgba(1, 28, 58, 0.98) 0%,
            rgba(4, 45, 88, 0.88) 24%,
            rgba(8, 52, 98, 0.62) 52%,
            rgba(12, 58, 105, 0.32) 78%,
            rgba(14, 62, 112, 0) 100%
    ),
    linear-gradient(
            185deg,
            rgba(0, 207, 247, 0.14) 0%,
            transparent 38%
    ),
    linear-gradient(
            180deg,
            rgba(1, 35, 72, 0.62) 0%,
            transparent min(46vh, 58%)
    );
    box-shadow: inset 0 -120px 220px rgba(1, 23, 60, 0.65),
    inset 0 0 90px rgba(1, 23, 60, 0.38);
}


.decor-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.decor-bg .blob {
    position: absolute;
    border-radius: 50%;
    opacity: 1;
    filter: blur(68px);
    transform: translateZ(0);
    will-change: transform;
}

.decor-bg .blob-1 {
    width: min(165vmin, 1400px);
    height: min(165vmin, 1400px);
    right: min(-35vmin, -280px);
    top: min(-38vmin, -300px);
    opacity: 0.92;
    background: radial-gradient(
            circle at 42% 38%,
            rgba(0, 207, 247, 0.18) 0%,
            rgba(0, 207, 247, 0.11) 18%,
            rgba(140, 190, 235, 0.07) 38%,
            rgba(220, 228, 245, 0.035) 58%,
            rgba(228, 235, 248, 0) 82%
    );
}

.decor-bg .blob-2 {
    width: min(150vmin, 1280px);
    height: min(150vmin, 1280px);
    left: min(-42vmin, -340px);
    bottom: min(-40vmin, -320px);
    opacity: 0.88;
    background: radial-gradient(
            circle at 58% 55%,
            rgba(1, 23, 60, 0.11) 0%,
            rgba(60, 90, 140, 0.065) 22%,
            rgba(180, 195, 225, 0.038) 48%,
            rgba(225, 232, 245, 0.018) 72%,
            rgba(232, 238, 248, 0) 88%
    );
}

.decor-bg .blob-3 {
    width: min(185vmin, 1600px);
    height: min(185vmin, 1600px);
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%) translateZ(0);
    opacity: 0.78;
    background: radial-gradient(
            ellipse 52% 48% at 50% 46%,
            rgba(180, 225, 255, 0.22) 0%,
            rgba(120, 190, 235, 0.12) 32%,
            rgba(70, 140, 205, 0.06) 58%,
            rgba(40, 90, 160, 0.03) 78%,
            rgba(30, 70, 130, 0) 94%
    );
    filter: blur(80px);
}

.guest-header {
    color: var(--bs-heading-color);
    letter-spacing: -0.02em;
}

.guest-logo img {
    width: auto;
    height: auto;
    max-height: 184px;
    max-width: min(320px, 82vw);
    object-fit: contain;
}

.guest-shell-panel {
    max-width: var(--guest-shell-max);
}

.guest-panel {
    border-radius: var(--guest-shell-radius) !important;
    overflow: hidden;
    border-color: rgba(1, 23, 60, 0.1) !important;
    box-shadow: 0 1px 2px rgba(1, 23, 60, 0.05),
    0 8px 24px rgba(1, 23, 60, 0.1),
    0 20px 40px rgba(1, 23, 60, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.auth-page .guest-panel.shadow-lg,
.auth-page .guest-panel.shadow-none {
    box-shadow: 0 1px 2px rgba(1, 23, 60, 0.05),
    0 8px 24px rgba(1, 23, 60, 0.1),
    0 20px 40px rgba(1, 23, 60, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.65) inset !important;
}

.auth-page .guest-panel label.form-label {
    font-size: 11px;
    line-height: 16px;
    font-weight: 600;
    color: var(--bs-heading-color);
    letter-spacing: 0.11em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}

.auth-page .guest-panel .form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    min-height: 0;
    height: auto;
    font-family: var(--bs-body-font-family);
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    color: var(--guest-input-text);
    background-color: #ffffff;
    border: 1px solid var(--guest-input-border);
    border-radius: var(--guest-input-radius);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.auth-page .guest-panel .mb-3 {
    margin-bottom: 0.75rem !important;
}

.auth-page .guest-panel .form-control::placeholder {
    color: var(--guest-input-placeholder);
    opacity: 0.85;
}

.auth-page .guest-panel .form-control:hover:not(:disabled):not(:focus):not(:read-only) {
    border-color: var(--guest-input-border-hover);
}

.auth-page .guest-panel .form-control:focus {
    border-color: #00cff7;
    box-shadow: 0 0 0 2px rgba(0, 207, 247, 0.22);
}

.auth-page .guest-panel .form-control:disabled,
.auth-page .guest-panel .form-control[readonly],
.auth-page .guest-panel .form-control.bg-light {
    opacity: 0.88;
    background-color: #f5f6fa !important;
    cursor: not-allowed;
    color: #444444 !important;
}

.auth-page .guest-panel .guest-password-field .form-control {
    padding-right: 3.75rem;
}

.auth-page .guest-panel .alert {
    border-radius: var(--guest-input-radius);
    border-width: 1px;
}

.auth-page .guest-panel .alert.py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.auth-page .guest-panel .alert-danger {
    color: #b3261e;
    background: rgba(179, 38, 30, 0.08);
    border-color: rgba(179, 38, 30, 0.22);
}

.auth-page .guest-panel .alert-success {
    color: var(--bs-heading-color);
    background: rgba(0, 207, 247, 0.15);
    border-color: rgba(0, 207, 247, 0.35);
}

.auth-page .guest-panel .btn {
    padding: 10px 18px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    border-radius: var(--guest-input-radius);
    margin-top: 2px;
}

.auth-page .guest-panel .mt-3 {
    margin-top: 0.75rem !important;
}

.auth-page .guest-panel .btn.btn-primary:focus-visible {
    box-shadow: 0 0 0 2px rgba(0, 207, 247, 0.3);
}

.guest-password-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-family: var(--bs-body-font-family);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--bs-primary);
    cursor: pointer;
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
}

.guest-password-toggle:hover {
    background: #e1e4ef;
}

.guest-password-toggle:focus-visible {
    outline: 2px solid #00cff7;
    outline-offset: 2px;
}

@media (max-width: 920px) {
    .guest-logo img {
        max-height: 164px;
        max-width: min(280px, 80vw);
    }
}

@media (max-width: 600px) {
    .guest-logo img {
        max-height: 148px;
    }
}

.guest-home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.guest-home-button-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
