/* Authentication & profile screens */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: #0f172a;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    margin: 2rem auto;
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.auth-card.profile-card {
    max-width: 520px;
}

.auth-card h1 {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
}

.event-details {
    margin: -0.25rem 0 1rem;
    padding: 0.6rem 0.8rem;
    border-left: 3px solid rgba(148, 163, 184, 0.4);
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.5;
}

.event-details-name {
    color: inherit;
    font-weight: 600;
}

.profile-divider {
    margin: 2rem 0 1.5rem;
    border: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.auth-card h2 {
    margin: 0 0 1rem;
    font-size: 1.15rem;
}

.profile-sub {
    margin-top: -0.75rem;
    margin-bottom: 1.25rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.auth-field label {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    color: #cbd5e1;
}

.auth-field input {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 1rem;
}

.auth-field input:focus {
    outline: none;
    border-color: #6366f1;
}

.auth-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 8px;
    background: #6366f1;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.auth-btn:hover { background: #4f46e5; }
.auth-btn:disabled { opacity: 0.6; cursor: default; }

.auth-google { background: #db4437; }
.auth-google:hover { background: #c23321; }
.auth-microsoft { background: #2f2f2f; }
.auth-microsoft:hover { background: #1f1f1f; }

.auth-external {
    display: flex;
    gap: 0.75rem;
}

.auth-sep {
    text-align: center;
    color: #64748b;
    margin: 1.25rem 0 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-error {
    background: #7f1d1d;
    color: #fee2e2;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-info {
    background: #14532d;
    color: #dcfce7;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.auth-foot {
    margin-top: 1.25rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}

.auth-foot a, .auth-error a { color: #a5b4fc; }

.validation-message {
    color: #fca5a5;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* API host selector on auth screens */
.auth-host {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #334155;
}

.auth-host-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.auth-host-summary strong { color: #cbd5e1; }

.auth-host-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.auth-host-row input { flex: 1; }

.auth-btn-sm {
    width: auto;
    margin-top: 0;
    padding: 0.5rem 0.9rem;
    white-space: nowrap;
}

.auth-link {
    background: none;
    border: none;
    color: #a5b4fc;
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
    text-decoration: underline;
}

/* Header sign-out / profile links */
.header-link {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    margin-left: 0.75rem;
    font-size: 0.9rem;
    text-decoration: none;
}

.header-link:hover { text-decoration: underline; }

/* Icon-only header buttons (profile, sign out) */
.header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    padding: 0.3rem;
    border-radius: 0.4rem;
}

.header-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.header-icon:hover {
    text-decoration: none;
    background: rgba(148, 163, 184, 0.2);
}

.stream-days { display: flex; flex-direction: column; gap: 8px; }
.stream-day-row { display: flex; gap: 8px; align-items: center; }
.stream-day-row input[type="date"] { flex: 0 0 160px; }
.stream-day-row input[type="text"] { flex: 1 1 auto; }
