/* ==========================================================================
   AnimeTV Pro — Dual-Gold Orbit Auth Monolith (Model 2)
   Shared across Electron/React App (Login, Forgot, Modal) & WordPress Theme
   ========================================================================== */

@property --auth-orbit-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes authSpinGoldOrbit {
    to {
        --auth-orbit-angle: 360deg;
    }
}

@keyframes authMonolithEnter {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============ STAGE WRAPPER (PAGE MODE) ============ */
.body.auth-monolith-body {
    padding: 22px 24px 54px !important;
    direction: rtl;
}

.auth-orbit-stage {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 185px);
    padding: 28px 16px;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

/* ============ FLOATING MONOLITH CARD + DUAL GOLD ORBIT ============ */
.auth-orbit-monolith {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: #1b1d25;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 26px;
    padding: 34px 32px 30px;
    box-shadow: 0 26px 58px -16px rgba(0, 0, 0, 0.78), 0 0 32px rgba(251, 191, 36, 0.08);
    z-index: 2;
    direction: rtl;
    text-align: right;
    animation: authMonolithEnter 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-orbit-monolith::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 26px;
    padding: 2px;
    background: conic-gradient(
        from var(--auth-orbit-angle),
        transparent 0deg,
        #fbbf24 52deg,
        #fef08a 74deg,
        transparent 116deg,
        transparent 180deg,
        #f59e0b 232deg,
        #fde68a 254deg,
        transparent 296deg
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: authSpinGoldOrbit 4.8s linear infinite;
    pointer-events: none;
    z-index: 3;
}

/* ============ TOP CREST & HEADING ============ */
.auth-orbit-crest {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22), rgba(245, 158, 11, 0.06));
    border: 1px solid rgba(251, 191, 36, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fbbf24;
    box-shadow: 0 12px 26px rgba(251, 191, 36, 0.18);
}

.auth-orbit-crest img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.auth-orbit-head {
    text-align: center;
    margin-bottom: 22px;
}

.auth-orbit-head h2,
.auth-orbit-head h3 {
    margin: 0 0 5px !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    color: #f8fafc !important;
    font-family: 'IRANYekanX', Tahoma, sans-serif;
}

.auth-orbit-head p {
    margin: 0 !important;
    font-size: 12.5px !important;
    color: #8b95a7 !important;
    line-height: 1.55;
}

/* ============ MODE TABS (LOGIN / REGISTER) ============ */
.auth-orbit-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    background: #13151c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.auth-orbit-tab {
    padding: 9px 12px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    color: #8b95a7;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: center;
    font-family: 'IRANYekanX', Tahoma, sans-serif;
    transition: all 0.22s ease;
}

.auth-orbit-tab:hover {
    color: #f8fafc;
}

.auth-orbit-tab.active,
.auth-orbit-tab.is-active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #111217 !important;
    box-shadow: 0 6px 18px rgba(251, 191, 36, 0.32);
}

/* ============ ALERTS & NOTICES ============ */
.auth-orbit-alert {
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 13px;
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.36);
    color: #fda4af;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.65;
    text-align: right;
}

.auth-orbit-alert.is-info {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.34);
    color: #fde68a;
}

.auth-orbit-alert.is-success {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.38);
    color: #6ee7b7;
}

/* ============ INPUT FIELDS ============ */
.auth-orbit-field {
    margin-bottom: 15px;
}

.auth-orbit-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.auth-orbit-label-row label {
    font-size: 12.5px;
    font-weight: 700;
    color: #cbd5e1;
    margin: 0 !important;
}

.auth-orbit-forgot-link {
    font-size: 11.5px;
    font-weight: 700;
    color: #fbbf24 !important;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none !important;
    font-family: 'IRANYekanX', Tahoma, sans-serif;
    transition: opacity 0.2s ease;
}

.auth-orbit-forgot-link:hover {
    opacity: 0.82;
    text-decoration: underline !important;
}

.auth-orbit-input-shell {
    position: relative;
    display: flex;
    align-items: center;
    background: #111218;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 14px;
    padding: 0 14px;
    height: 48px;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.auth-orbit-input-shell:focus-within {
    border-color: #fbbf24;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.15);
}

.auth-orbit-icon {
    color: #64748b;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 10px;
    transition: color 0.2s ease;
}

.auth-orbit-input-shell:focus-within .auth-orbit-icon {
    color: #fbbf24;
}

.auth-orbit-input-shell input {
    flex: 1;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #f8fafc !important;
    font-size: 13.5px !important;
    font-family: 'IRANYekanX', Tahoma, sans-serif;
    direction: ltr;
    text-align: left;
    padding: 0 !important;
    margin: 0 !important;
}

.auth-orbit-input-shell input::placeholder {
    color: #64748b;
    font-size: 12px;
}

.auth-orbit-eye-btn {
    color: #8b95a7;
    background: none;
    border: none;
    padding: 4px 6px;
    margin-right: 8px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-family: 'IRANYekanX', Tahoma, sans-serif;
    transition: color 0.2s ease, background 0.2s ease;
}

.auth-orbit-eye-btn:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

/* ============ SUBMIT CTA & FOOTER ============ */
.auth-orbit-submit {
    width: 100%;
    height: 50px;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #111217 !important;
    border: none !important;
    font-size: 14.5px !important;
    font-weight: 700 !important;
    font-family: 'IRANYekanX', Tahoma, sans-serif;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    cursor: pointer;
    box-shadow: 0 12px 28px -6px rgba(251, 191, 36, 0.42);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-orbit-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px -6px rgba(251, 191, 36, 0.56);
}

.auth-orbit-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}

/* ============ GOOGLE OAUTH DIVIDER & BUTTON ============ */
.auth-orbit-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 14px;
    color: #64748b;
    font-size: 11.5px;
    font-weight: 600;
}

.auth-orbit-divider::before,
.auth-orbit-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.085);
}

.auth-orbit-google-btn {
    width: 100%;
    height: 48px;
    border-radius: 14px !important;
    background: #13151d !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    font-family: 'IRANYekanX', Tahoma, sans-serif;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.22s ease;
}

.auth-orbit-google-btn:hover {
    background: #181b26 !important;
    border-color: rgba(251, 191, 36, 0.5) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.55), 0 0 18px rgba(251, 191, 36, 0.12);
    color: #ffffff !important;
}

.auth-orbit-google-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-orbit-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 12px;
    color: #8b95a7;
    line-height: 1.65;
}

.auth-orbit-foot a,
.auth-orbit-foot button {
    color: #fbbf24 !important;
    font-weight: 700;
    background: none;
    border: none;
    padding: 0;
    margin: 0 4px;
    cursor: pointer;
    text-decoration: none !important;
    font-family: inherit;
    font-size: inherit;
}

.auth-orbit-foot a:hover,
.auth-orbit-foot button:hover {
    text-decoration: underline !important;
}

/* ============ CAPTCHA & RECOVERED CREDENTIALS ============ */
.auth-orbit-captcha {
    display: flex;
    justify-content: center;
    margin: 14px 0 16px;
    overflow: hidden;
}

.auth-orbit-cred-card {
    background: #111218;
    border: 1px solid rgba(251, 191, 36, 0.32);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.auth-orbit-cred-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.auth-orbit-cred-row span:first-child {
    color: #94a3b8;
}

.auth-orbit-cred-row strong {
    color: #fbbf24;
    font-family: 'Kalame', monospace, sans-serif;
    direction: ltr;
    font-size: 15px;
}

/* ============ MODAL OVERLAY MODE ============ */
.auth-orbit-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(9, 10, 15, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-orbit-close {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
}

.auth-orbit-close:hover {
    border-color: #fbbf24;
    color: #fbbf24;
    transform: rotate(90deg);
}

/* ============ DAY / LIGHT MODE ============ */
.day .auth-orbit-stage {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.day .auth-orbit-monolith {
    background: #f8fafd;
    border-color: rgba(217, 119, 6, 0.28);
    box-shadow: 0 24px 52px -16px rgba(15, 23, 42, 0.16);
}

.day .auth-orbit-head h2,
.day .auth-orbit-head h3 {
    color: #0f172a !important;
}

.day .auth-orbit-head p,
.day .auth-orbit-foot {
    color: #64748b !important;
    border-top-color: rgba(15, 23, 42, 0.09);
}

.day .auth-orbit-tabs {
    background: #e9eef6;
    border-color: rgba(15, 23, 42, 0.08);
}

.day .auth-orbit-tab {
    color: #475569;
}

.day .auth-orbit-label-row label {
    color: #334155;
}

.day .auth-orbit-input-shell {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
}

.day .auth-orbit-input-shell input {
    color: #0f172a !important;
}

.day .auth-orbit-forgot-link,
.day .auth-orbit-foot a,
.day .auth-orbit-foot button {
    color: #b45309 !important;
}

.day .auth-orbit-divider::before,
.day .auth-orbit-divider::after {
    background: rgba(15, 23, 42, 0.1);
}

.day .auth-orbit-google-btn {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.14) !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.day .auth-orbit-google-btn:hover {
    background: #f8fafc !important;
    border-color: rgba(217, 119, 6, 0.5) !important;
    color: #0f172a !important;
}

.day .auth-orbit-cred-card {
    background: #ffffff;
    border-color: rgba(217, 119, 6, 0.35);
}

.day .auth-orbit-cred-row strong {
    color: #b45309;
}

@media (max-width: 600px) {
    .body.auth-monolith-body {
        padding: 12px 12px 36px !important;
    }

    .auth-orbit-stage {
        padding: 22px 10px;
        border-radius: 22px;
    }

    .auth-orbit-monolith {
        padding: 26px 20px 24px;
        border-radius: 22px;
    }
}
