/* ===== FABULA ARCANA - RECUPERA PASSWORD CSS ===== */

:root {
    --bg-primary: #0d0d1a;
    --bg-secondary: #1a1a2e;
    --bg-card: rgba(22, 33, 61, 0.95);
    --accent-primary: #7c3aed;
    --accent-secondary: #a855f7;
    --accent-fuchsia: #c026d3;
    --accent-glow: rgba(124, 58, 237, 0.4);
    --text-primary: #e5e5e5;
    --text-secondary: #a0a0a0;
    --text-accent: #c4b5fd;
    --border-color: rgba(124, 58, 237, 0.3);
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #eab308;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body.recupera-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
}

/* ===== VIDEO BACKGROUND ===== */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.35) saturate(1.1);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(13, 13, 26, 0.7) 100%),
        linear-gradient(180deg, rgba(13, 13, 26, 0.3) 0%, rgba(13, 13, 26, 0.6) 100%);
}

/* ===== MAIN WRAPPER ===== */
.recupera-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== NAVIGATION BUTTONS ===== */
.back-button, .contact-link {
    position: fixed;
    top: 15px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-button {
    left: 15px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(124, 58, 237, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
    color: var(--accent-secondary);
    font-family: 'Cinzel', serif;
}

.back-button:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(124, 58, 237, 0.2));
    transform: translateX(-3px);
}

.contact-link {
    right: 15px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.contact-link:hover {
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}

/* ===== CONTENT AREA ===== */
.recupera-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 15px 15px;
}

/* ===== CARD ===== */
.recupera-card {
    width: 100%;
    max-width: 450px;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(15, 15, 26, 0.98));
    border-radius: 16px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 30px;
    box-shadow: 0 0 50px rgba(124, 58, 237, 0.2), 0 20px 40px rgba(0, 0, 0, 0.4);
    animation: cardAppear 0.5s ease-out;
}

.reset-card {
    max-width: 480px;
}

@keyframes cardAppear {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== HEADER ===== */
.recupera-header {
    text-align: center;
    margin-bottom: 25px;
}

.recupera-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-secondary), #e879f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.recupera-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.recupera-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== ALERT MESSAGES ===== */
.alert-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    text-align: center;
}

.alert-message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.alert-message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

/* ===== DISMISSIBLE NOTIFICATION ===== */
.notification {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

.notification.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.3);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: bold;
    flex-shrink: 0;
}

.notification-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-text strong {
    color: var(--success);
    font-size: 0.9rem;
}

.notification-text span {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    color: var(--text-primary);
}

/* ===== FORM ===== */
.recupera-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.focused .form-label {
    color: var(--accent-secondary);
}

.form-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.form-input {
    padding: 12px 16px;
    background: rgba(26, 26, 46, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-secondary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: rgba(26, 26, 46, 0.95);
}

.form-input::placeholder {
    color: rgba(160, 160, 160, 0.5);
}

.text-danger {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
}

.validation-summary-errors {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 15px;
    color: var(--danger);
    font-size: 0.85rem;
}

.validation-summary-errors ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ===== INFO/WARNING NOTES ===== */
.info-note, .warning-note {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.8rem;
}

.info-note {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: var(--text-accent);
}

.warning-note {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: var(--warning);
}

.info-icon, .warning-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
}

.info-icon {
    background: rgba(124, 58, 237, 0.3);
    color: var(--accent-secondary);
}

.warning-icon {
    background: rgba(234, 179, 8, 0.3);
    color: var(--warning);
}

/* ===== SUBMIT BUTTON ===== */
.btn-submit {
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-fuchsia));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ===== DIVIDER ===== */
.recupera-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.recupera-divider::before,
.recupera-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.recupera-divider span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* ===== LINKS ===== */
.recupera-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
}

.recupera-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.recupera-link:hover {
    color: var(--accent-secondary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .recupera-card {
        padding: 25px 20px;
        border-radius: 12px;
    }

    .recupera-logo {
        font-size: 1.3rem;
    }

    .recupera-title {
        font-size: 1.1rem;
    }

    .form-input {
        padding: 10px 14px;
    }

    .btn-submit {
        padding: 12px 20px;
    }
}

@media (max-height: 700px) {
    .recupera-content {
        padding-top: 60px;
    }

    .recupera-card {
        padding: 20px;
    }

    .recupera-header {
        margin-bottom: 15px;
    }

    .recupera-form {
        gap: 12px;
    }

    .recupera-divider {
        margin: 15px 0;
    }
}
