@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

html, body {
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow-x: hidden; /* impede arrasto lateral */
    overflow-y: hidden;   /* mantém scroll normal */
}

/* Efeitos decorativos de fundo */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 165, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(10, 165, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* Container principal */
.recovery-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Header com gradiente */
.recovery-header {
    background: linear-gradient(135deg, #0032ac 0%, #001a5c 100%);
    padding: 20px 20px 20px;
    position: relative;
    overflow: hidden;
}

.recovery-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(10, 165, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.header-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.icon-container {
    width: 80px;
    height: 80px;
    background: rgba(10, 165, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: pulse-icon 2s ease-in-out infinite;
}

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

.icon-container svg {
    width: 40px;
    height: 40px;
    color: white;
}

.recovery-title {
    color: white;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 8px;
}

.recovery-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95em;
    font-weight: 400;
    line-height: 1.5;
}

/* Tabs */
.tabs-container {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.tab-button {
    flex: 1;
    padding: 18px 20px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #0aa5ff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-button.active {
    color: #0032ac;
    background: white;
}

.tab-button.active::after {
    transform: scaleX(1);
}

.tab-button:hover:not(.active) {
    background: rgba(10, 165, 255, 0.05);
}

/* Formulário */
.recovery-form {
    padding: 40px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.info-box {
    background: linear-gradient(135deg, rgba(10, 165, 255, 0.1) 0%, rgba(0, 50, 172, 0.05) 100%);
    border-left: 4px solid #0aa5ff;
    padding: 15px 18px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    gap: 12px;
}

.info-box svg {
    flex-shrink: 0;
    color: #0aa5ff;
    margin-top: 2px;
}

.info-box p {
    color: #333;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    color: #333;
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #0032ac;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95em;
    color: #333;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #0aa5ff;
    box-shadow: 0 0 0 4px rgba(10, 165, 255, 0.1);
}

.form-input::placeholder {
    color: #999;
}

/* Botões */
.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0aa5ff 0%, #0032ac 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 165, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 165, 255, 0.5);
}

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

.btn-primary span {
    position: relative;
    z-index: 1;
}

.btn-secondaryy {
    width: 100%;
    padding: 13px;
    background: white;
    color: #0032ac;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: 12px;
}

.btn-secondaryy:hover {
    border-color: #0032ac;
    background: #f8f9fa;
}

/* Loading state */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-primary.loading span::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Success message */
.success-message {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.success-message.show {
    display: block;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.success-message h3 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.success-message p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.success-message .email-sent {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    display: inline-block;
}

.success-message .email-sent strong {
    color: #0032ac;
    font-size: 1.1em;
}

/* Responsividade */
@media (max-width: 768px) {
     body {
        align-items: flex-start; /* alinha o container no topo */
        padding-top: 10px; /* opcional — ajusta a distância do topo */
    }
    
    .recovery-container {
        max-width: 95%;
        border-radius: 20px;
    }

    .recovery-header {
        padding: 30px 25px 40px;
    }

    .recovery-title {
        font-size: 1.5em;
    }

    .recovery-form {
        padding: 30px 25px;
    }

    .tab-button {
        padding: 15px 15px;
        font-size: 0.9em;
    }

    .back-button {
        top: 15px;
        left: 15px;
        padding: 8px 15px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .recovery-header {
        padding: 25px 20px 35px;
    }

    .recovery-title {
        font-size: 1.3em;
    }

    .recovery-subtitle {
        font-size: 0.85em;
    }

    .recovery-form {
        padding: 25px 20px;
    }

    .tab-button {
        padding: 12px 10px;
        font-size: 0.85em;
    }

    .form-input {
        padding: 12px 12px 12px 40px;
        font-size: 0.9em;
    }

    .btn-primary {
        padding: 13px;
        font-size: 0.95em;
    }

    .icon-container {
        width: 70px;
        height: 70px;
    }

    .icon-container svg {
        width: 35px;
        height: 35px;
    }
}