/* forgot-password.css */
:root {
    --bg-dark: #0a0a10;
    --bg-card: #12121a;
    --bg-input: rgba(255, 255, 255, 0.03);
    --text: #f0f0f5;
    --muted: #9e9eb5;
    --brand: #0cb0f0;
    --brand-hover: #0099cc;
    --success: #39E000;
    --warning: #ff9500;
    --danger: #ff4d4f;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
}

/* Container Principal */
.forgot-password-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Header */
.forgot-header {
    text-align: center;
    margin-bottom: 40px;
}

.forgot-logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(12, 176, 240, 0.3));
}

.forgot-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--brand), #0052cc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.forgot-header p {
    color: var(--muted);
    font-size: 1rem;
}

/* Card do Formulário */
.forgot-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: cardSlideIn 0.5s ease-out;
}

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

/* Seletor de Tipo */
.user-type-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border-radius: var(--radius);
}

.type-btn {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: calc(var(--radius) - 2px);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}

.type-btn i {
    font-size: 18px;
}

.type-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.type-btn.active {
    background: rgba(12, 176, 240, 0.2);
    color: var(--brand);
    box-shadow: 0 0 15px rgba(12, 176, 240, 0.1);
}

/* Formulário */
.forgot-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--brand);
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(12, 176, 240, 0.1);
}

.form-input::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

/* Botões */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand), #0052cc);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0052cc, var(--brand));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(12, 176, 240, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Mensagens */
.message {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

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

.message i {
    font-size: 20px;
}

.message-success {
    background: rgba(57, 224, 0, 0.1);
    border: 1px solid rgba(57, 224, 0, 0.3);
    color: var(--success);
}

.message-error {
    background: rgba(255, 77, 79, 0.1);
    border: 1px solid rgba(255, 77, 79, 0.3);
    color: var(--danger);
}

.message-warning {
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid rgba(255, 149, 0, 0.3);
    color: var(--warning);
}

/* Etapas */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--muted);
    transition: var(--transition);
}

.step.active {
    background: var(--brand);
    border-color: var(--brand);
    color: white;
    box-shadow: 0 0 15px rgba(12, 176, 240, 0.3);
}

.step.completed {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* Modal de Código */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 16, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 400px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease-out;
}

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

.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-header h3 {
    color: var(--text);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--muted);
    font-size: 0.95rem;
}

.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.code-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--bg-input);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    color: var(--text);
    transition: var(--transition);
}

.code-input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(12, 176, 240, 0.1);
    outline: none;
}

.timer {
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.timer span {
    color: var(--brand);
    font-weight: 600;
}

.resend-link {
    text-align: center;
    margin-top: 20px;
}

.resend-link a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.resend-link a:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

.resend-link a.disabled {
    color: var(--muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.resend-link a.disabled:hover {
    text-decoration: none;
}

/* Nova Senha */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 0.85rem;
    color: var(--muted);
}

.password-rules {
    margin-top: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.password-rules h4 {
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-list {
    list-style: none;
}

.rule-list li {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rule-list li i {
    font-size: 12px;
    color: var(--danger);
}

.rule-list li.valid i {
    color: var(--success);
}

/* Footer */
.forgot-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-size: 0.9rem;
}

.forgot-footer a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.forgot-footer a:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

/* Responsividade */
@media (max-width: 768px) {
    .forgot-card {
        padding: 30px 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .type-btn {
        padding: 12px;
        font-size: 0.9rem;
    }
    
    .code-inputs {
        gap: 8px;
    }
    
    .code-input {
        width: 45px;
        height: 55px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .forgot-header h1 {
        font-size: 1.7rem;
    }
    
    .forgot-card {
        padding: 25px 15px;
    }
    
    .code-input {
        width: 40px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .step {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
}