/* Login + attending portal — SpaceX / Starlink dark */

.login-page {
    min-height: 100vh;
    margin: 0;
    background: #000;
    font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.login-layout {
    display: flex;
    min-height: 100vh;
}

.login-brand-panel {
    flex: 1;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border-right: 1px solid #222;
}

.login-brand-content {
    max-width: 400px;
}

.login-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 2px;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.login-brand-mark .brand-vital-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    line-height: 1;
}

.login-brand-mark .brand-vital-mark i {
    font-size: 1.15rem;
}

.login-brand-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.login-brand-content > p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

.login-features i {
    color: #fff;
}

.login-form-panel {
    flex: 0 0 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #0a0a0a;
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    color: #fff;
}

.login-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #fff;
}

.login-card-subtitle {
    color: #6e6e6e;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.login-card .form-label {
    color: #b3b3b3;
}

.login-card .form-control {
    background: #000;
    border: 1px solid #333;
    border-radius: 2px;
    color: #fff;
}

.login-card .form-control:focus {
    border-color: #fff;
    box-shadow: none;
    background: #000;
    color: #fff;
}

.login-card .btn-primary {
    background: #fff;
    border-color: #fff;
    color: #000;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.login-card .btn-primary:hover {
    background: #e8e8e8;
    border-color: #e8e8e8;
    color: #000;
}

.login-help {
    color: #6e6e6e !important;
}

@media (max-width: 768px) {
    .login-layout {
        flex-direction: column;
    }

    .login-brand-panel {
        padding: 2rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid #222;
    }

    .login-brand-content h1 {
        font-size: 1.35rem;
    }

    .login-features {
        display: none;
    }

    .login-form-panel {
        flex: 1;
        padding: 1.5rem;
    }
}

.portal-body {
    background: #000;
    color: #fff;
    min-height: 100vh;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
    font-family: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.portal-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #000;
    color: #fff;
    padding: 0.85rem 1rem;
    padding-top: calc(0.85rem + env(safe-area-inset-top));
    border-bottom: 1px solid #222;
}

.portal-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.portal-brand {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portal-brand .brand-vital-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.portal-brand .brand-vital-mark i {
    font-size: 1.05rem;
}

.portal-user {
    font-size: 0.8rem;
    color: #b3b3b3;
    max-width: 45%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-main {
    padding: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.portal-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: #0a0a0a;
    border-top: 1px solid #222;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 200;
    box-shadow: none;
}

.portal-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.5rem 0.25rem;
    font-size: 0.65rem;
    color: #6e6e6e;
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.portal-nav-item i {
    font-size: 1.25rem;
}

.portal-nav-item.active {
    color: #fff;
    font-weight: 600;
}

.portal-footer-actions {
    text-align: center;
    padding-bottom: 0.5rem;
    margin-top: -4.5rem;
}

.portal-footer-actions .btn-link {
    color: #6e6e6e !important;
}

.portal-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: #0a0a0a;
    border-radius: 2px;
    border: 1px solid #222;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    height: 100%;
    box-shadow: none;
    letter-spacing: 0.01em;
}

.portal-action-card i {
    font-size: 1.75rem;
    color: #fff;
}

.portal-action-card-wide {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
    text-align: left;
}

.portal-action-card-wide i {
    flex-shrink: 0;
}

.portal-action-card-hint {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #6e6e6e;
    margin-top: 0.15rem;
}

.portal-cell-mine {
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: inset 0 0 0 1px #fff;
}

.portal-schedule-scroll .week-col,
.portal-schedule-scroll .week-col-end,
.portal-schedule-scroll tbody tr:nth-child(even) .week-col,
.portal-schedule-scroll tbody tr:nth-child(even) .week-col-end {
    position: sticky;
    background: #000 !important;
    color: #fff !important;
    z-index: 2;
}

.portal-schedule-scroll .week-col {
    left: 0;
    min-width: 3.5rem;
}

.portal-schedule-scroll .week-col-end {
    left: 3.5rem;
    min-width: 3.25rem;
    font-size: 0.7rem;
    white-space: nowrap;
    color: #b3b3b3 !important;
}

.portal-schedule-scroll .unit-col {
    min-width: 2.75rem;
    font-size: 0.7rem;
}

.portal-week-list .list-group-item {
    padding: 0.85rem 1rem;
    background: #0a0a0a;
    color: #fff;
    border-color: #222;
}

.portal-week-unavailable {
    background: rgba(255, 107, 107, 0.08);
}

.portal-shift-list .list-group-item {
    padding: 1rem;
    background: #0a0a0a;
    color: #fff;
    border-color: #222;
}

.portal-hero.card,
.portal-main .card {
    background: #0a0a0a;
    border: 1px solid #222 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    color: #fff;
}

.portal-main .card-body {
    color: #fff;
}

.sticky-save {
    position: sticky;
    bottom: 5.5rem;
    z-index: 50;
}

.portal-schedule-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #0a0a0a;
    border-radius: 2px;
    border: 1px solid #222;
}

@media (min-width: 768px) {
    .portal-bottom-nav {
        max-width: 640px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0;
    }
}

/* On-call week (portal theme) */

.on-call-week--portal {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 2px;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: none;
}

.on-call-week--portal .on-call-week-title {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.on-call-week--portal .on-call-table {
    border: none;
    border-radius: 0;
    background: transparent;
}

.on-call-week--portal .on-call-table-head {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.on-call-week--portal .on-call-table-row {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
}

.on-call-week--portal .on-call-table-row:nth-child(even) {
    background: transparent;
}

a.icu-badge-link,
.icu-badge-link {
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

a.icu-badge-link:hover,
a.icu-badge-link:focus-visible {
    filter: brightness(1.12);
    outline: none;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.unit-day-contact-btn {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    cursor: pointer;
    text-align: right;
}

.unit-day-contact-btn:hover,
.unit-day-contact-btn:focus-visible {
    opacity: 0.75;
}

.unit-group-header-link {
    color: inherit;
    font-weight: 700;
    cursor: pointer;
}

.unit-group-header-link:hover,
.unit-group-header-link:focus-visible {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Desktop-only portal features */

.portal-desktop-only {
    display: none;
}

@media (min-width: 992px) {
    .portal-desktop-only {
        display: block;
    }
}

.portal-calendar-export-card {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 2px;
    padding: 1rem 1.15rem;
    box-shadow: none;
}

.portal-calendar-export-copy {
    margin-bottom: 0.85rem;
}

.portal-calendar-export-copy h3 {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.portal-calendar-export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.portal-calendar-export-hint {
    line-height: 1.45;
    color: #6e6e6e;
}

.portal-calendar-export-hint code {
    font-size: 0.8em;
    color: #b3b3b3;
}
