@import "index.css";

/* Global Font Settings to guarantee consistent premium typography */
body, input, button, select, textarea, label, span, p, h1, h2, h3, h4, h5, h6, a {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset background body styles for app layouts */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 2rem 1rem;
}

/* recovery Wrapper & Card Layout */
.recovery-wrapper {
    width: 100%;
    max-width: 460px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: wrapperIn 0.8s var(--ease-expo) forwards;
}

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

.logo-section {
    text-align: center;
    margin-bottom: 0.5rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-link span {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

/* recovery Card Glassmorphism */
.recovery-card {
    background: rgba(12, 10, 26, 0.45);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.recovery-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow: 0 35px 80px rgba(139, 92, 246, 0.12), 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.08);
}

.recovery-card h2 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.6rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.recovery-subtitle {
    font-size: 0.88rem;
    color: var(--mist);
    line-height: 1.55;
    margin-bottom: 2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Timeline Visual Tracker Style (Innovative) */
.recovery-timeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 8, 22, 0.4);
    border: 1px solid var(--border-faint);
    border-radius: 20px;
    padding: 0.85rem 1.5rem;
    backdrop-filter: blur(10px);
    margin-bottom: 0.5rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s var(--ease-smooth);
}

.step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fog);
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.4s var(--ease-smooth);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.step-label {
    font-size: 0.68rem;
    color: var(--fog);
    font-weight: 600;
    letter-spacing: 0.02em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.timeline-line {
    flex: 1;
    height: 2px;
    background: var(--border-dim);
    margin: 0 1rem;
    transform: translateY(-10px);
    transition: all 0.6s var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.timeline-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--grad-brand);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-smooth);
}

/* Timeline Active / Completed States */
.step.active .step-num {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--violet-soft);
    color: var(--violet-soft);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}
.step.active .step-label {
    color: var(--violet-soft);
    font-weight: 700;
}

.step.completed .step-num {
    background: var(--grad-brand);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}
.step.completed .step-label {
    color: var(--violet-pale);
    font-weight: 600;
}

.timeline-line.active::after {
    transform: translateX(0);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--silver);
    margin-bottom: 0.5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(2, 1, 8, 0.45);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    transition: all 0.3s var(--ease-smooth);
}

.input-wrapper i {
    color: var(--fog);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--white);
    font-size: 0.92rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.input-wrapper input::placeholder {
    color: var(--fog);
}

.input-wrapper:focus-within {
    border-color: var(--violet-soft);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.input-wrapper:focus-within i {
    color: var(--violet-soft);
}

/* Buttons */
.btn-recovery {
    width: 100%;
    padding: 0.9rem;
    background: var(--grad-brand);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.35);
    transition: all 0.3s var(--ease-spring);
    margin-top: 2rem;
}

.btn-recovery:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(109, 40, 217, 0.5);
}

.btn-recovery:active {
    transform: translateY(0);
}

.btn-recovery:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Spinner Loader */
.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer elements */
.card-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-dim);
    text-align: center;
    font-size: 0.8rem;
    color: var(--fog);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.card-footer a {
    color: var(--violet-soft);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.card-footer a:hover {
    color: var(--violet-pale);
}

.back-home {
    text-align: center;
}

.back-home a {
    color: var(--fog);
    font-size: 0.85rem;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s var(--ease-smooth);
}

.back-home a:hover {
    color: var(--white);
    transform: translateX(-3px);
}

/* Success State instruction blocks */
.success-icon-badge {
    width: 66px;
    height: 66px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #10b981;
    margin: 0.5rem auto 1.5rem auto;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.instruction-box {
    background: rgba(10, 8, 22, 0.3);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.instruction-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.bullet {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: var(--violet-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.instruction-item p {
    font-size: 0.82rem;
    color: var(--silver);
    line-height: 1.45;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.instruction-item strong {
    color: var(--white);
}

/* Hidden container transitions */
.hidden {
    opacity: 0;
    transform: scale(0.96);
    pointer-events: none;
    transition: all 0.4s var(--ease-smooth);
}

#successState {
    display: none;
}

/* Alerts System Styling */
.alert {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    display: none;
    animation: alertIn 0.4s var(--ease-spring) forwards;
    max-width: 380px;
}

@keyframes alertIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.alert.hide {
    animation: alertOut 0.4s var(--ease-smooth) forwards;
}

@keyframes alertOut {
    to { opacity: 0; transform: translateY(-15px) scale(0.95); }
}

.alert.success {
    background: rgba(6, 40, 30, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #a7f3d0;
}

.alert.error {
    background: rgba(45, 10, 15, 0.85);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}

.alert a {
    text-decoration: underline;
    font-weight: 700;
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .recovery-card {
        padding: 1.75rem;
    }
    .logo-link span {
        font-size: 1.3rem;
    }
    .recovery-timeline {
        padding: 0.75rem 1rem;
    }
    .timeline-line {
        margin: 0 0.5rem;
    }
}
