﻿/* ========================================================================================
   PASSWORD RECOVERY - DESIGN FUTURÍSTICO SENAC
   Sistema Quadro Horário
   ======================================================================================== */
.main {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    margin: 5px auto;
    max-width: 1920px;
    padding: 0;
}
/* ------------------------
   RESET E BASE
   ------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #f0f5fb 0%, #e3f2fd 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

/* Padrão geométrico no fundo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 74, 141, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(247, 148, 29, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

form {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ------------------------
   VARIÁVEIS
   ------------------------ */
:root {
    --primary: #004A8D;
    --primary-dark: #003A6D;
    --accent: #F7941D;
    --accent-light: #FDC180;
    --success: #10b981;
    --error: #dc3545;
    --text: #2c3e50;
    --text-light: #6c757d;
    --border: rgba(0, 74, 141, 0.12);
}

/* ------------------------
   PARTÍCULAS (OPCIONAL)
   ------------------------ */
.particles {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    animation: float 12s ease-in-out infinite;
}

.particles::before {
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.particles::after {
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -30px); }
}

/* ------------------------
   CONTAINER PRINCIPAL
   ------------------------ */
.recovery-container {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* ------------------------
   CARD PRINCIPAL
   ------------------------ */
.recovery-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), #ffffff);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px 44px;
    box-shadow: 
        0 24px 64px rgba(0, 58, 109, 0.16),
        0 4px 12px rgba(0, 0, 0, 0.08);
    border-top: 6px solid var(--primary);
    animation: fadeInUp 0.6s ease-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recovery-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 32px 80px rgba(0, 58, 109, 0.20),
        0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ------------------------
   CABEÇALHO
   ------------------------ */
.recovery-header {
    text-align: center;
    margin-bottom: 40px;
}

.recovery-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.recovery-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recovery-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* ------------------------
   FORMULÁRIO
   ------------------------ */
.recovery-form {
    width: 100%;
}

.recovery-field-group {
    margin-bottom: 28px;
}

.recovery-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.recovery-input {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    font-size: 1.05rem;
    color: var(--text);
    background: #fafbfc;
    border: 2px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.recovery-input::placeholder {
    color: #9ca3af;
}

.recovery-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 74, 141, 0.08);
    transform: translateY(-2px);
}

/* ------------------------
   VALIDAÇÃO
   ------------------------ */
.recovery-validation {
    display: block;
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 6px;
    font-weight: 600;
}

.recovery-error {
    background: linear-gradient(135deg, #fee, #fdd);
    border-left: 4px solid var(--error);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--error);
    font-size: 0.95rem;
    font-weight: 600;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* ------------------------
   INFO BOX
   ------------------------ */
.recovery-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 74, 141, 0.08), rgba(0, 74, 141, 0.04));
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    color: var(--text);
}

.info-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* ------------------------
   BOTÕES
   ------------------------ */
.recovery-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.recovery-btn {
    flex: 1;
    height: 56px;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.recovery-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.recovery-btn:active::before {
    width: 400px;
    height: 400px;
}

.recovery-btn-submit {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    box-shadow: 0 10px 28px rgba(0, 74, 141, 0.24);
}

.recovery-btn-submit:hover {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(247, 148, 29, 0.32);
}

.recovery-btn-submit:active {
    transform: translateY(-1px);
}

/* ------------------------
   TEMPLATE DE SUCESSO
   ------------------------ */
.recovery-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon-wrapper {
    margin-bottom: 24px;
}

.success-icon-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #059669);
    color: white;
    font-size: 3.5rem;
    font-weight: bold;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.3);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--success);
    margin: 0 0 16px 0;
}

.success-message {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.success-note {
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

.success-note strong {
    color: var(--success);
}

/* ------------------------
   FOOTER / VOLTAR
   ------------------------ */
.recovery-footer {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 74, 141, 0.1);
    text-align: center;
}

.back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.back-to-login:hover {
    background: rgba(0, 74, 141, 0.06);
    color: var(--accent);
    transform: translateX(-4px);
}

/* ------------------------
   RESPONSIVIDADE
   ------------------------ */

@media (max-width: 768px) {
    body {
        padding: 16px;
    }

    .recovery-card {
        padding: 36px 28px;
    }

    .recovery-title {
        font-size: 1.7rem;
    }

    .recovery-icon {
        font-size: 3rem;
    }

    .recovery-input {
        height: 52px;
        font-size: 1rem;
    }

    .recovery-btn {
        height: 52px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .recovery-card {
        padding: 28px 24px;
        border-radius: 20px;
    }

    .recovery-title {
        font-size: 1.5rem;
    }

    .recovery-subtitle {
        font-size: 0.9rem;
    }

    .recovery-icon {
        font-size: 2.5rem;
    }

    .recovery-input {
        height: 50px;
        font-size: 0.95rem;
    }

    .recovery-btn {
        height: 50px;
        font-size: 0.95rem;
    }

    .success-icon-check {
        width: 80px;
        height: 80px;
        font-size: 2.8rem;
    }

    .success-title {
        font-size: 1.6rem;
    }
}

/* ------------------------
   ACESSIBILIDADE
   ------------------------ */

.recovery-input:focus-visible,
.recovery-btn:focus-visible,
.back-to-login:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

@media (prefers-contrast: high) {
    .recovery-card {
        border-width: 3px;
    }

    .recovery-input {
        border-width: 3px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ------------------------
   MENSAGEM INFORMATIVA
   ------------------------ */
.recovery-info-message {
    background: linear-gradient(135deg, rgba(0, 74, 141, 0.05), rgba(247, 148, 29, 0.05));
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
}

.info-icon-large {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: iconBounce 2s ease-in-out infinite;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px 0;
}

.info-text {
    font-size: 1rem;
    color: var(--text);
    line-height: 1.7;
    margin: 0 0 24px 0;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    text-align: left;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.info-list li {
    font-size: 1rem;
    color: var(--text);
    padding: 12px 20px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.contact-info {
    background: rgba(0, 74, 141, 0.08);
    border-radius: 12px;
    padding: 20px 24px;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.8;
}

.contact-info strong {
    color: var(--primary);
    font-size: 1.05rem;
    display: block;
    margin-bottom: 8px;
}

/* ------------------------
   ALERTAS
   ------------------------ */
.alert {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    font-weight: 600;
    animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.alert-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.alert-text {
    flex: 1;
    line-height: 1.5;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.08));
    border-left: 5px solid #10b981;
    color: #059669;
}

.alert-error {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.15), rgba(220, 53, 69, 0.08));
    border-left: 5px solid #dc3545;
    color: #c82333;
}

/* ------------------------
   INFORMAÇÕES ADICIONAIS
   ------------------------ */
.recovery-info {
    background: rgba(0, 74, 141, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.info-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 16px 0;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    font-size: 0.95rem;
    color: var(--text);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 74, 141, 0.1);
}

.info-list li:last-child {
    border-bottom: none;
}