/* Orbit annotator sign-in — dark brand / light form */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

body.auth-orbit-page {
    margin: 0;
    min-height: 100vh;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    font-family: Outfit, Inter, system-ui, sans-serif;
    color: #0f172a;
    background: #ffffff;
}

#auth-vault-overlay.auth-orbit-vault {
    position: fixed;
    inset: 0;
    width: auto;
    height: auto;
    min-height: 100%;
    z-index: 9999999;
    display: block;
    padding: 0;
    overflow: auto;
    font-family: Outfit, Inter, system-ui, sans-serif;
    background: #ffffff;
    transition: opacity 0.5s ease;
}

.auth-orbit-bg {
    display: none;
}

.auth-orbit-shell,
.auth-orbit-center {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
}

.auth-orbit-aside {
    position: relative;
    max-width: none;
    min-height: 100vh;
    padding: 0 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #eef2ff;
    background-color: #07091a;
    background-image:
        radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 78% 32%, rgba(103, 232, 249, 0.7), transparent),
        linear-gradient(180deg, #07091a 0%, #05060f 42%, #0a0d22 100%);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

.auth-orbit-aside::before {
    content: "";
    position: absolute;
    inset: -20%;
    pointer-events: none;
    background:
        radial-gradient(ellipse 42% 36% at 16% 22%, rgba(34, 211, 238, 0.22), transparent 58%),
        radial-gradient(ellipse 38% 42% at 86% 12%, rgba(129, 140, 248, 0.18), transparent 56%);
    filter: blur(16px);
}

.auth-orbit-aside > * {
    position: relative;
    z-index: 1;
}

.auth-orbit-aside > .auth-orbit-home {
    position: absolute;
    top: 32px;
    left: 64px;
    z-index: 2;
    color: #67e8f9;
}

.auth-orbit-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    margin: 0;
    width: max-content;
    color: #e2e8f0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    text-decoration: none;
}

.auth-orbit-home i {
    font-size: 12px;
    line-height: 1;
}

.auth-orbit-home:hover,
.auth-orbit-aside > .auth-orbit-home:hover {
    color: #ffffff;
}

.auth-orbit-copy {
    width: 440px;
    max-width: 100%;
}

.auth-orbit-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 180px;
    margin: 0 0 24px;
    object-fit: contain;
    object-position: left center;
}

.auth-orbit-kicker {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #67e8f9;
}

.auth-orbit-aside h1,
.auth-orbit-page .auth-orbit-aside h1 {
    margin: 0 0 12px;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 44px;
    color: #ffffff;
}

.auth-orbit-aside-lead {
    margin: 0 0 24px;
    max-width: 440px;
    font-size: 16px;
    line-height: 24px;
    color: #e8eefc;
}

.auth-orbit-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    width: 100%;
}

.auth-orbit-facts li {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(8, 12, 32, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.16);
    font-size: 14px;
    line-height: 20px;
    color: #e8eefc;
}

.auth-orbit-facts strong {
    display: block;
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-orbit-facts li span {
    display: block;
    color: #e8eefc;
    font-size: 14px;
    line-height: 20px;
}

.auth-orbit-facts li span + span {
    margin-top: 2px;
}

.auth-orbit-card,
#auth-card.auth-orbit-card,
.auth-orbit-page .login-card {
    position: relative;
    min-height: 100vh;
    padding: 3.5rem 4rem;
    border: none;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
    backdrop-filter: none;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #0f172a;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

.auth-form-header h2,
.auth-orbit-card h1,
.auth-orbit-card h2,
.auth-orbit-card h3,
#auth-card.auth-orbit-card h2,
#auth-card.auth-orbit-card h3,
.auth-orbit-page .login-card h1 {
    margin: 0 0 0.4rem;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a !important;
}

.auth-form-header p,
.auth-orbit-lead {
    margin: 0 0 1.35rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #64748b;
}

.auth-pipeline-label {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
}

.auth-pipeline-grid {
    display: grid;
    gap: 0.65rem;
}

.auth-pipeline-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.9rem 1rem;
    text-align: left;
    cursor: pointer;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
    color: inherit;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.auth-pipeline-card:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.auth-pipeline-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
}

.auth-pipeline-info h3,
.auth-pipeline-name,
#auth-vault-overlay .auth-pipeline-info h3 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    color: #0f172a !important;
}

.auth-pipeline-info p,
.auth-pipeline-tagline {
    margin: 0.15rem 0 0;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

.auth-pipeline-card .auth-pipeline-rate,
.auth-pipeline-rate {
    font-size: 0.78rem;
    font-weight: 800;
    color: #0369a1;
    white-space: nowrap;
}

.auth-pipeline-arrow {
    display: none;
}

.auth-divider {
    margin: 1.1rem 0 0.65rem;
    text-align: center;
    font-size: 0.72rem;
    color: #94a3b8;
}

.auth-help-row {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #64748b;
}

.auth-help-row a {
    color: #0369a1;
    font-weight: 700;
    text-decoration: none;
}

.auth-footer-secure,
.auth-orbit-page .auth-footer {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.72rem;
    color: #94a3b8;
    text-align: center;
}

#auth-login-step,
.auth-login-section {
    display: none;
}

#auth-login-step.visible,
.auth-login-section.visible {
    display: block;
}

.auth-selected-pipeline {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.85rem;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
}

.auth-selected-pipeline.visible {
    display: flex;
}

.auth-selected-icon {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.auth-selected-info,
.auth-selected-pipeline-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.auth-selected-name,
.auth-selected-pipeline-text strong {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
}

.auth-selected-tagline,
.auth-selected-pipeline-text span {
    font-size: 0.75rem;
    color: #64748b;
}

.auth-change-pipeline {
    border: none;
    background: transparent;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.auth-field,
.auth-orbit-page .form-group {
    margin-bottom: 0.9rem;
}

.auth-field label,
.auth-orbit-page .form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #334155;
}

.auth-field-input-wrap {
    position: relative;
}

.auth-field-input-wrap .field-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.85rem;
    pointer-events: none;
}

.auth-field-input-wrap input {
    padding-left: 2.35rem;
}

.auth-field-input-wrap #auth-key {
    padding-right: 2.7rem;
}

.auth-field input,
.auth-orbit-page .login-card input,
#auth-vault-overlay .auth-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    box-shadow: none !important;
}

.auth-field input::placeholder,
.auth-orbit-page .login-card input::placeholder {
    color: #94a3b8;
}

.auth-field input:focus,
.auth-orbit-page .login-card input:focus,
#auth-vault-overlay .auth-field input:focus {
    border-color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06) !important;
}

.auth-toggle-pw {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
}

.auth-login-btn,
.auth-submit,
.auth-orbit-page .btn-primary {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.auth-login-btn:hover,
.auth-submit:hover,
.auth-orbit-page .btn-primary:hover {
    background: #1e293b;
}

.auth-error,
.auth-error-msg,
.auth-orbit-page .error-message {
    min-height: 1.1rem;
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: #dc2626;
    opacity: 0;
}

.auth-process-loader {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
}

.auth-process-loader.visible {
    display: flex;
}

.auth-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.auth-loader-bar {
    width: 160px;
    height: 4px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
}

.auth-loader-bar-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    background: #0f172a;
}

.auth-loader-ring {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid #e2e8f0;
    border-top-color: #0f172a;
    animation: auth-spin 0.8s linear infinite;
}

.auth-loader-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #475569;
}

.auth-success-check {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #fff;
    font-size: 1.2rem;
}

.auth-shake,
.auth-orbit-page .shake {
    animation: auth-shake 0.4s ease;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

@keyframes auth-shake {
    20%, 80% { transform: translateX(2px); }
    40%, 60% { transform: translateX(-4px); }
}

/* Enter credentials — shared edges, 48px controls, dark type */
#auth-vault-overlay.auth-orbit-vault {
    color-scheme: light;
}

#auth-login-step.auth-login-section {
    width: 100%;
}

#auth-login-step .auth-form-header h2 {
    margin: 0;
    font-size: 28px;
    line-height: 34px;
    letter-spacing: -0.03em;
    color: #0f172a !important;
}

#auth-login-step .auth-form-header p {
    margin: 6px 0 20px;
    font-size: 15px;
    line-height: 22px;
    color: #334155;
}

#auth-login-step .auth-selected-pipeline {
    display: none;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    margin: 0 0 20px;
    padding: 10px 12px;
    border: 1px solid #d5deea;
    border-radius: 12px;
    background: #f8fafc;
    box-sizing: border-box;
}

#auth-login-step .auth-selected-pipeline.visible {
    display: grid;
}

#auth-login-step #auth-selected-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 15px;
}

#auth-login-step .auth-selected-pipeline-text {
    gap: 2px;
}

#auth-login-step .auth-selected-pipeline-text strong {
    font-size: 14px;
    line-height: 18px;
    font-weight: 700;
    color: #0f172a;
}

#auth-login-step .auth-selected-pipeline-text span {
    font-size: 13px;
    line-height: 18px;
    color: #334155;
}

#auth-login-step .auth-change-pipeline {
    height: 32px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 32px;
    font-weight: 700;
    color: #0369a1;
}

#auth-login-step .auth-change-pipeline:hover {
    background: #e0f2fe;
}

#auth-login-step form {
    display: flex;
    flex-direction: column;
    margin: 0;
}

#auth-login-step .auth-field {
    margin: 0 0 14px;
}

#auth-login-step .auth-field label {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0;
    color: #0f172a;
}

#auth-login-step .auth-field-input-wrap .field-icon {
    left: 14px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 14px;
}

#auth-login-step .auth-field input {
    height: 48px;
    padding: 0 14px 0 42px;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px;
    background: #ffffff !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a;
    font-size: 15px;
    line-height: 22px;
    caret-color: #0f172a;
}

#auth-login-step .auth-field input::placeholder {
    color: #64748b;
    -webkit-text-fill-color: #64748b;
}

#auth-login-step .auth-field input:focus {
    border-color: #0f172a !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

#auth-login-step #auth-key {
    padding-right: 44px;
}

#auth-login-step .auth-toggle-pw {
    right: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    color: #334155;
    font-size: 14px;
}

#auth-login-step .auth-toggle-pw:hover {
    background: #f1f5f9;
}

#auth-login-step .auth-error-msg {
    min-height: 0;
    margin: 0;
    font-size: 13px;
    line-height: 18px;
}

#auth-login-step .auth-error-msg:not(:empty) {
    margin: 0 0 10px;
}

#auth-login-step .auth-submit {
    height: 48px;
    margin: 6px 0 0;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 48px;
    font-weight: 700;
    letter-spacing: 0;
}

#auth-login-step .auth-submit i {
    font-size: 13px;
}

#auth-login-step .auth-divider {
    margin: 18px 0 4px;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    color: #334155;
}

#auth-login-step .auth-help-row {
    font-size: 14px;
    line-height: 20px;
    color: #1e293b;
}

#auth-login-step .auth-help-row a {
    color: #0369a1;
    font-weight: 700;
}

#auth-login-step .auth-help-row a:hover {
    text-decoration: underline;
}

#auth-login-step + .auth-footer-secure {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    line-height: 18px;
    color: #475569;
}

@media (max-width: 860px) {
    .auth-orbit-shell,
    .auth-orbit-center {
        grid-template-columns: 1fr;
    }

    .auth-orbit-aside,
    .auth-orbit-card,
    #auth-card.auth-orbit-card,
    .auth-orbit-page .login-card {
        min-height: auto;
        padding: 32px 24px;
    }

    .auth-orbit-aside > .auth-orbit-home {
        position: static;
        margin-bottom: 24px;
    }

    .auth-orbit-copy {
        width: 100%;
    }

    .auth-orbit-aside h1,
    .auth-orbit-page .auth-orbit-aside h1 {
        font-size: 32px;
        line-height: 36px;
    }
}
