
.falconops-login-page {
    background: radial-gradient(circle at top, rgba(26, 179, 143, 0.2), transparent 55%), #050706;
}

.foaa-login-shell {
    min-height: calc(100vh - clamp(2rem, 4vw, 3rem));
    padding: clamp(1.5rem, 4vw, 3rem) 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
}

.foaa-login-card {
    width: min(560px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: var(--ds-text, #f5f5f5);
}

.foaa-login-header h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: inherit;
}

.foaa-login-header p {
    margin: 0;
    color: var(--ds-muted, rgba(255, 255, 255, 0.75));
    line-height: 1.6;
}

.foaa-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.75rem;
    color: var(--ds-muted-strong, rgba(255, 255, 255, 0.85));
    margin-bottom: 0.5rem;
}

.foaa-meta {
    font-size: 0.95rem;
}

.foaa-login-form {
    margin: 0;
}

.foaa-feedback {
    margin-bottom: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid transparent;
    font-weight: 600;
}

.foaa-feedback.is-error {
    background: rgba(255, 77, 79, 0.08);
    border-color: rgba(255, 77, 79, 0.25);
    color: #ffb3b5;
}

.foaa-feedback.is-success {
    background: rgba(84, 227, 177, 0.12);
    border-color: rgba(84, 227, 177, 0.25);
    color: #c3ffe9;
}

.foaa-inline-links {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.foaa-link {
    background: transparent;
    border: 0;
    padding: 0;
    font-weight: 600;
    color: var(--ds-muted-strong, rgba(255, 255, 255, 0.9));
    text-decoration: underline;
    cursor: pointer;
}

.foaa-password-field .foaa-password-input {
    position: relative;
}

.foaa-password-field input[type="password"],
.foaa-password-field input[type="text"] {
    padding-right: 3.25rem;
}

.foaa-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: var(--ds-muted-strong, rgba(255, 255, 255, 0.85));
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.falconops-login-page {
    background: radial-gradient(circle at top, rgba(26, 179, 143, 0.2), transparent 55%), #050706;
    min-height: 100vh;
}

.foaa-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 9999;
}

.foaa-modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

.foaa-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(2px);
}

.foaa-modal__dialog {
    width: min(520px, 100%);
    background: var(--ds-surface, #181c18);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(1.5rem, 4vw, 2.25rem);
    color: var(--ds-text, #f5f5f5);
    position: relative;
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
}

.foaa-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: 0;
    color: var(--ds-muted, rgba(255, 255, 255, 0.65));
    font-size: 1.4rem;
    cursor: pointer;
}

.foaa-modal__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.72rem;
    color: var(--ds-muted-strong, rgba(255, 255, 255, 0.85));
    margin-bottom: 0.35rem;
}

.foaa-modal__feedback {
    margin-top: 1rem;
    padding: 0.7rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.foaa-modal-form {
    margin-top: 1.25rem;
}

.foaa-modal--blocking .foaa-modal__close {
    display: none;
}

.foaa-security-messages {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-family: 'JetBrains Mono', 'IBM Plex Mono', Consolas, monospace;
    font-size: 0.95rem;
    color: var(--ds-muted, rgba(255, 255, 255, 0.7));
}

.foaa-security-messages span {
    opacity: 0;
    transform: translateY(6px);
    animation: foaaFadeUp 0.35s ease forwards;
}

body.foaa-modal-open {
    overflow: hidden;
}

.foaa-modal__loader {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.falconops-login-page main,
.falconops-login-page .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

.falconops-login-page main .wp-block-group:not(.foaa-allow-spacing),
.falconops-login-page main .wp-block-columns:not(.foaa-allow-spacing),
.falconops-login-page main .wp-block-spacer:not(.foaa-allow-spacing) {
    margin: 0 !important;
    padding: 0 !important;
}

.falconops-login-page main [style*="--wp--preset--spacing"] {
    margin: 0 !important;
    padding: 0 !important;
}

.lds-ripple,
.lds-ripple div {
    box-sizing: border-box;
}

.lds-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ripple div {
    position: absolute;
    border: 4px solid currentColor;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 8px;
        height: 8px;
        opacity: 0;
    }
    4.9% {
        top: 36px;
        left: 36px;
        width: 8px;
        height: 8px;
        opacity: 0;
    }
    5% {
        top: 36px;
        left: 36px;
        width: 8px;
        height: 8px;
        opacity: 1;
    }
    100% {
        top: 0;
        left: 0;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

@keyframes foaaFadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .foaa-login-shell {
        padding: 1.5rem;
    }
}
