/* =========================================================================
   RECUPERAR CONTRASEÑA - MINIMALISTA FULLSCREEN
   ========================================================================= */

:root {
    --bg-dark: #050505; /* True dark for minimalist feel */
    --text-primary: #ffffff;
    --text-secondary: #71717a;
    --primary-red: #ce1126; 
    --primary-red-glow: rgba(206, 17, 38, 0.3);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image: radial-gradient(circle at center, rgba(206, 17, 38, 0.05) 0%, transparent 60%);
}

.brand-top {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.brand-top i {
    color: var(--primary-red);
}

.minimal-container {
    width: 100%;
    max-width: 800px;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}

/* Steps Transition */
.step-container {
    position: relative;
}

.step-form {
    display: none;
    animation: fadeScale 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.step-form.active {
    display: block;
}

@keyframes fadeScale {
    0% { opacity: 0; transform: scale(0.97) translateY(10px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Typography */
.form-header {
    margin-bottom: 60px;
}

.form-header h2 {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media screen and (max-width: 600px) {
    .form-header h2 { font-size: 36px; }
}

.form-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* Inputs - Giant and Sleek */
.input-group {
    margin-bottom: 32px;
}

.input-wrapper {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.input-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 20px 16px 50px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    text-align: left;
    letter-spacing: 0.05em;
}

@media screen and (max-width: 600px) {
    .input-wrapper input {
        font-size: 16px;
        padding-left: 45px;
    }
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--text-secondary);
    transition: color 0.4s ease;
}

.input-wrapper input:focus {
    border-bottom-color: var(--primary-red);
    box-shadow: 0 20px 40px -20px var(--primary-red-glow);
}

.input-wrapper input:focus + i,
.input-wrapper input:not(:placeholder-shown) + i {
    color: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.1);
}

/* Minimalist Button */
.submit-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px 40px;
    border-radius: 100px; /* Pill shape */
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.submit-btn:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn .btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

/* Loading State */
.submit-btn .spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .spinner {
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Info Text */
.info-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.info-text i {
    font-size: 28px;
    color: var(--primary-red);
    margin-bottom: 8px;
}
.info-text strong {
    color: var(--text-primary);
}

/* Links & Resend */
.back-link {
    margin-top: 60px;
    text-align: center;
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
}

.back-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.back-link a:hover {
    color: var(--text-primary);
}

.resend-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}
.resend-btn:hover:not(:disabled) {
    color: var(--text-primary);
}
.resend-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Messages */
.message-container {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
}
#form-message {
    font-size: 15px;
    font-weight: 500;
}
#form-message.error { color: #ff4d4d; }
#form-message.success { color: #34d399; }
