/* ==========================================
   Base Layout & Background
   ========================================== */
.fp-full-page-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    background-color: var(--antologa-white);
}

.fp-background-img-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 0;
}

.fp-background-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* Scroll Container */
.fp-scroll-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(40, 40, 40, 0.2) rgba(255, 255, 255, 0.1);
}

/* Grid & Vertical Centering */
.antologa-grid.fp-center-vertical {
    min-height: 100%;
    padding: 2rem;
    width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
}

/* ==========================================
   Card / White Frame
   ========================================== */
.fp-white-frame {
    background-color: rgba(248, 248, 248, 0.35) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 1rem !important;
    padding: 3rem 2.5rem !important;
    width: 75%;
    min-height: 100% !important;
    height: 100%;
    box-shadow: 0 10px 40px rgba(7, 130, 130, 0.15) !important;
    border: 1px solid rgba(248, 248, 248, 0.3) !important;
    margin: auto;
}

/* ==========================================
   Header & Logo
   ========================================== */
.fp-logo-container {
    text-align: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.fp-form-logo {
    width: 12rem !important;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.fp-tagline {
    font-family: var(--font-heading) !important;
    font-size: clamp(0.55rem, 1.5vw, 0.65rem) !important;
    font-weight: 400 !important;
    letter-spacing: 0.175rem;
    text-transform: uppercase;
    color: var(--text-dark) !important;
    margin-bottom: 2rem !important;
}

/* ==========================================
   MudStepper Overrides — 4 Steps
   ========================================== */

/* Container: full width, no extra padding */
.fp-stepper {
    width: 100%;
    margin-bottom: 1.5rem;
}

    /* Navigation handled via ActionContent RenderFragment — no buttons rendered */
    /* Hide the step content panels — we render content via switch below */
    .fp-stepper .mud-step-content {
        display: none !important;
    }

    /* Strip card/paper elevation from stepper wrapper */
    .fp-stepper .mud-paper {
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    /* Step header row — horizontal layout */
    .fp-stepper .mud-stepper-header {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 0;
    }

    /* Each step header item */
    .fp-stepper .mud-step-label-icon {
        width: 2.8rem;
        height: 2.8rem;
        font-family: var(--font-heading);
        font-size: clamp(0.75rem, 2vw, 0.85rem);
        font-weight: 600;
        transition: background 0.25s ease, color 0.25s ease;
    }

    /* Inactive step */
    .fp-stepper .mud-step-label-icon {
        background: var(--antologa-light-gray) !important;
        color: var(--antologa-gray) !important;
    }

    /* Active step */
    .fp-stepper .mud-step--active .mud-step-label-icon {
        background: var(--antologa-primary) !important;
        color: var(--antologa-white) !important;
    }

    /* Completed step */
    .fp-stepper .mud-step--completed .mud-step-label-icon {
        background: rgba(7, 130, 130, 0.12) !important;
        color: var(--antologa-primary) !important;
        border: 2px solid var(--antologa-primary);
    }

    /* Connector line between steps */
    .fp-stepper .mud-step-connector {
        flex: 1;
        border-top: 2px solid var(--antologa-light-gray);
        margin: 0 0.25rem;
    }

    .fp-stepper .mud-step-connector-completed {
        border-top-color: var(--antologa-primary) !important;
    }

    /* Hide step title labels — numbers only */
    .fp-stepper .mud-step-label-content {
        display: none !important;
    }

/* ==========================================
   Body Sections
   ========================================== */
.fp-body-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fp-body-center {
    align-items: center;
    text-align: center;
}

/* ==========================================
   Section Typography
   ========================================== */
.fp-section-title {
    font-family: var(--font-heading) !important;
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
    font-weight: 700 !important;
    color: var(--text-primary) !important;
    margin-bottom: 0.25rem !important;
}

.fp-section-subtitle {
    font-family: var(--font-body) !important;
    font-size: clamp(0.875rem, 2vw, 1rem) !important;
    color: var(--text-body) !important;
    margin-bottom: 1rem !important;
    line-height: 1.6;
}

    .fp-section-subtitle strong {
        color: var(--text-primary);
        font-weight: 700;
    }

/* ==========================================
   Inputs & Controls
   ========================================== */
.fp-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fp-input {
    margin-bottom: 0 !important;
    font-family: var(--font-body) !important;
    color: var(--text-primary) !important;
}

    .fp-input .mud-input-adornment button {
        color: var(--antologa-gray) !important;
        transition: color 0.2s ease;
    }

        .fp-input .mud-input-adornment button:hover {
            color: var(--antologa-primary) !important;
        }

    .fp-input .mud-input-outlined-border {
        border-color: var(--antologa-dark);
    }

    .fp-input .mud-input.mud-input-outlined.mud-input-focused .mud-input-outlined-border {
        border-color: var(--antologa-primary) !important;
    }

    .fp-input .mud-input {
        color: var(--text-primary) !important;
    }

        .fp-input .mud-input::placeholder {
            color: var(--text-secondary) !important;
            opacity: 0.7;
        }

    .fp-input .mud-input-label {
        color: var(--text-dark) !important;
    }

        .fp-input .mud-input-label.mud-input-label-focused {
            color: var(--antologa-primary) !important;
        }

/* Progress bar */
.fp-progress {
    border-radius: 4px;
    margin-top: 0.25rem;
}

/* Alert */
.fp-alert {
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    width: 100%;
}

/* ==========================================
   Buttons
   ========================================== */
.fp-submit-btn {
    font-family: var(--font-heading) !important;
    background-color: var(--antologa-primary) !important;
    color: var(--antologa-white) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px !important;
    padding: 0.8rem 0 !important;
    margin-bottom: 0 !important;
    box-shadow: 0 4px 6px rgba(7, 130, 130, 0.2) !important;
    min-height: 44px;
    width: 100%;
    transition: all 0.3s ease;
}

    .fp-submit-btn:disabled {
        background-color: var(--antologa-light-gray) !important;
        color: var(--antologa-gray) !important;
        box-shadow: none !important;
    }

    .fp-submit-btn:hover:not(:disabled) {
        color: var(--antologa-white) !important;
        background-color: var(--antologa-secondary) !important;
        box-shadow: 0 6px 12px rgba(0, 79, 113, 0.25) !important;
    }

    .fp-submit-btn:active:not(:disabled) {
        background-color: var(--antologa-dark) !important;
        transform: translateY(1px);
    }

.fp-resend-btn {
    font-family: var(--font-heading) !important;
    background-color: transparent !important;
    color: var(--antologa-primary) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px !important;
    border: 2px solid var(--antologa-primary) !important;
    padding: 0.8rem 0 !important;
    min-height: 44px;
    width: 100%;
    transition: all 0.3s ease;
}

    .fp-resend-btn:hover:not(:disabled) {
        background-color: rgba(7, 130, 130, 0.07) !important;
        border-color: var(--antologa-secondary) !important;
        color: var(--antologa-secondary) !important;
    }

    .fp-resend-btn:disabled {
        opacity: 0.5 !important;
        box-shadow: none !important;
    }

.fp-btn-spinner {
    margin-right: 0.5rem;
}

/* ==========================================
   Back to Login Link
   ========================================== */
.fp-back-link-container {
    text-align: center;
    margin-top: 1rem;
    width: 100%;
}

.fp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--antologa-primary) !important;
    text-decoration: none;
    font-family: var(--font-body) !important;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
    transition: color 0.3s ease;
}

    .fp-back-link:hover {
        text-decoration: underline;
        color: var(--antologa-contrast) !important;
    }

.fp-back-icon {
    font-size: 1.1rem !important;
}

/* ==========================================
   Status Icons (Step 2 & 3)
   ========================================== */
.fp-icon-circle {
    width: 6.4rem;
    height: 6.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.fp-icon-circle--mustard {
    background: rgba(225, 169, 81, 0.14);
}

.fp-icon-circle--teal {
    background: rgba(7, 130, 130, 0.12);
}

.fp-step-icon {
    font-size: 3.2rem !important;
}

.fp-step-icon--mustard {
    color: var(--antologa-contrast) !important;
}

.fp-step-icon--teal {
    color: var(--antologa-primary) !important;
}

/* ==========================================
   Footer
   ========================================== */
.fp-footer {
    width: 100%;
    margin-top: 2rem;
    border-top: 1px solid rgba(40, 40, 40, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: center;
}

/* ==========================================
   Scrollbar Webkit Overrides
   ========================================== */
.fp-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.fp-scroll-container::-webkit-scrollbar-track {
    background: rgba(248, 248, 248, 0.1);
}

.fp-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(40, 40, 40, 0.2);
    border-radius: 4px;
}

    .fp-scroll-container::-webkit-scrollbar-thumb:hover {
        background: var(--antologa-primary);
    }

/* ==========================================
   Responsive Breakpoints
   ========================================== */

/* Tablets and Mobile (<1279px) */
@media (max-width: 1279px) {
    .antologa-grid.fp-center-vertical {
        padding: 1.5rem;
    }

    .fp-white-frame {
        padding: 2.5rem 2rem !important;
        max-width: 100%;
    }

    .fp-form-logo {
        width: 12rem !important;
    }

    .fp-tagline {
        letter-spacing: 0.15rem;
        margin-bottom: 1.5rem !important;
    }
}

/* Small Tablets and Large Phones (600px - 900px) */
@media (max-width: 900px) {
    .antologa-grid.fp-center-vertical {
        padding: 1rem;
    }

    .fp-white-frame {
        padding: 2rem 1.5rem !important;
    }

    .fp-form-logo {
        width: 11rem !important;
    }

    .fp-section-title {
        margin-bottom: 0.5rem !important;
    }

    .fp-section-subtitle {
        margin-bottom: 1.5rem !important;
    }
}

/* Mobile Phones (<600px) */
@media (max-width: 600px) {
    .antologa-grid.fp-center-vertical {
        padding: 1rem 0.75rem;
    }

    .fp-white-frame {
        padding: 1.75rem 1.25rem !important;
        border-radius: 1rem !important;
    }

    .fp-form-logo {
        width: 10rem !important;
    }

    .fp-tagline {
        font-size: 0.55rem !important;
        letter-spacing: 0.125rem;
        margin-bottom: 1.25rem !important;
    }

    .fp-submit-btn,
    .fp-resend-btn {
        padding: 0.9rem 0 !important;
        font-size: 0.9rem !important;
    }

    .fp-footer {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

/* Extra Small Phones (<400px) */
@media (max-width: 400px) {
    .antologa-grid.fp-center-vertical {
        padding: 0.75rem 0.5rem;
    }

    .fp-white-frame {
        padding: 1.5rem 1rem !important;
    }

    .fp-form-logo {
        width: 9rem !important;
    }

    .fp-tagline {
        font-size: 0.5rem !important;
        letter-spacing: 0.1rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .antologa-grid.fp-center-vertical {
        padding: 1rem;
        min-height: auto;
    }

    .fp-white-frame {
        padding: 1.5rem 2rem !important;
        margin: 1rem auto;
    }

    .fp-form-logo {
        width: 8rem !important;
    }

    .fp-tagline {
        margin-bottom: 1rem !important;
    }

    .fp-section-subtitle {
        margin-bottom: 1rem !important;
    }
}
