html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.iik-login-card {
    border: 2px solid #228B22;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 20px 60px rgba(32,138,74,0.15), 0 8px 32px rgba(32,138,74,0.10);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

    .iik-login-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #228B22, #32CD32, #228B22);
        z-index: 1;
    }

.login-step-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    border: 1px solid rgba(34, 139, 34, 0.1);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out;
}

.login-method-option {
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

    .login-method-option:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(34, 139, 34, 0.15);
        border-color: #228B22;
        background-color: rgba(34, 139, 34, 0.05);
    }

.forgot-password-link {
    color: #228B22;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

    .forgot-password-link:hover {
        color: #1e7e34;
        text-decoration: underline;
    }

.register-link {
    text-decoration: none;
}

.mud-input-root:focus-within {
    border-color: #228B22 !important;
    box-shadow: 0 0 0 3px rgba(34, 139, 34, 0.1) !important;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .iik-login-card {
        margin: 1rem;
        padding: 1.5rem !important;
    }

    .login-step-card {
        padding: 1rem !important;
    }
}

/* Enhanced stepper styling */
.mud-stepper-extended {
    background: transparent;
}

.mud-stepper-step.mud-stepper-step-completed .mud-stepper-step-icon {
    background-color: var(--mud-palette-success) !important;
    color: white !important;
}

.mud-stepper-step.mud-stepper-step-active .mud-stepper-step-icon {
    background-color: var(--mud-palette-primary) !important;
    color: white !important;
}

/* ==========================================================================
   Mobile-first registration flow (Screen A + Screen B) and shared components
   Breakpoint strategy:
     xs..sm (<960px):  Mobile-optimized cards, sticky bottom bar, full-width
                        selects with 44px+ touch targets.
     md+ (>=960px):    Desktop layout with table-based review, sticky bar
                        becomes a non-sticky inline block since the stepper
                        "Next" button is always visible on desktop.
   ========================================================================== */

/* --- Status Row (persistent progress indicator independent of stepper header) --- */
.status-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
}
.status-row__label {
    display: flex;
    align-items: center;
    gap: 6px;
}
.status-row__bar {
    height: 4px;
    border-radius: 2px;
    background-color: var(--mud-palette-lines-default);
    overflow: hidden;
}
.status-row__bar-fill {
    height: 100%;
    border-radius: 2px;
    background-color: var(--mud-palette-primary);
    transition: width 0.4s ease;
}

/* --- Bio-success confirmation (Screen A) --- */
.bio-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 340px;
    padding: 24px 16px;
    text-align: center;
}
.bio-success__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(var(--mud-palette-success-rgb, 76, 175, 80), 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.bio-success__heading {
    margin-bottom: 8px;
}

/* --- Requirements disclosure (Screen B) --- */
.requirements-panel {
    margin-bottom: 16px;
}

/* --- Upload dropzone (Screen B, dashed border) --- */
.upload-dropzone {
    border: 2px dashed var(--mud-palette-lines-default);
    border-radius: 12px;
    padding: 32px 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    margin-bottom: 16px;
}
.upload-dropzone:hover,
.upload-dropzone.drag-enter {
    border-color: var(--mud-palette-primary);
    background-color: rgba(var(--mud-palette-primary-rgb, 0, 0, 0), 0.04);
}

/* --- Pending document cards (mobile) --- */
.pending-doc-card {
    transition: box-shadow 0.2s;
}
.pending-doc-card:hover {
    box-shadow: var(--mud-elevation-4);
}

/* --- Sticky Action Bar --- */
.sticky-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-top: 1px solid var(--mud-palette-lines-default);
    padding: 12px 16px 16px;
    background-color: var(--mud-palette-surface);
    margin-left: -16px;
    margin-right: -16px;
    width: calc(100% + 32px);
}

/* On md-and-above the sticky bar relaxes to a normal flow element */
@media (min-width: 960px) {
    .sticky-action-bar {
        position: static;
        border-top: none;
        margin-left: 0;
        margin-right: 0;
        width: auto;
        padding: 16px 0 0;
    }
    .sticky-action-bar .sticky-action-bar__content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Ensure the upload-dropzone and pending cards don't overflow on tiny screens */
@media (max-width: 375px) {
    .pending-doc-card .mud-select {
        min-width: 0;
    }
}
