/* Reset e variáveis */
:root {
    --nubank-purple: #820AD1;
    --nubank-purple-light: #A855F7;
    --nubank-purple-lighter: #C084FC;
    --nubank-purple-dark: #6B0FA8;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    min-height: 100vh;
    color: var(--gray-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    box-shadow: 0 0 60px rgba(130, 10, 209, 0.1);
}

/* Header */
header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nubank-purple);
    letter-spacing: -0.02em;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem 1.5rem;
}

.illustration-container {
    margin-bottom: 2rem;
}

.illustration {
    max-width: 200px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

.illustration-card {
    max-width: 280px;
    margin: 0 auto;
    animation: float 3s ease-in-out infinite;
}

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

.title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    text-align: center;
    line-height: 1.3;
}

.subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.6;
}

/* Form */
.recovery-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.form-group-half {
    flex: 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--gray-900);
}

.input-field:focus {
    outline: none;
    border-color: var(--nubank-purple);
    box-shadow: 0 0 0 3px rgba(130, 10, 209, 0.1);
}

.input-field::placeholder {
    color: var(--gray-400);
}

/* Button */
.submit-btn,
.btn-primary,
.btn-secondary {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn,
.btn-primary {
    background: linear-gradient(135deg, var(--nubank-purple) 0%, var(--nubank-purple-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(130, 10, 209, 0.3);
}

.submit-btn:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(130, 10, 209, 0.4);
}

.submit-btn:active,
.btn-primary:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--nubank-purple);
    border: 2px solid var(--nubank-purple);
    margin-top: 0.75rem;
}

.btn-secondary:hover {
    background: var(--gray-50);
}

.action-buttons {
    margin-top: 1.5rem;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(130, 10, 209, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-radius: 8px;
    border: 1px solid rgba(130, 10, 209, 0.1);
}

.info-box svg {
    flex-shrink: 0;
    color: var(--nubank-purple);
}

.info-box p {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.5;
}

/* Success Page */
.success-page {
    text-align: center;
}

.success-animation {
    margin-bottom: 1.5rem;
}

.success-circle {
    animation: scaleIn 0.5s ease-out;
    display: inline-block;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.points-card {
    background: linear-gradient(135deg, var(--nubank-purple) 0%, var(--nubank-purple-light) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(130, 10, 209, 0.3);
}

.points-info {
    text-align: left;
}

.points-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.points-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.points-icon svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.success-details {
    margin: 2rem 0;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.detail-content {
    text-align: left;
}

.detail-content strong {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.detail-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Footer */
footer {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--gray-100);
    margin-top: auto;
}

footer p {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 640px) {
    .container {
        box-shadow: none;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9375rem;
    }
    
    .points-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .illustration {
        max-width: 150px;
    }
    
    header {
        padding: 1rem;
    }
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error);
    color: var(--error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
}
