/* public/recover.css */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #f8fafc; 
    font-family: 'Noto Sans SC', sans-serif;
    color: #334155;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 1200px;
    height: 1200px;
    background-image: radial-gradient(circle, rgba(165, 180, 252, 0.25), transparent 60%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.recover-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
}

.recover-card {
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 420px;
    text-align: center;
    transform: translateY(20px);
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

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


.card-header {
    margin-bottom: 2rem;
}

.card-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background-color: #eef2ff; 
    color: #6366f1;
    border-radius: 50%;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.card-subtitle {
    font-size: 1rem;
    color: #64748b;
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.6;
}

.recover-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: color 0.3s ease;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    background-color: #fff;
    color: #334155;
}

.form-input::placeholder {
    color: #94a3b8; 
}

.form-input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-input:focus + i {
    color: #6366f1; 
}

.form-divider {
    color: #94a3b8;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background-color: #e2e8f0;
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.submit-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    margin-top: 1rem;
    background-image: linear-gradient(to right, #6366f1 0%, #8b5cf6 51%, #6366f1 100%);
    background-size: 200% auto;
    color: #fff;
    box-shadow: 0 4px 15px 0 rgba(139, 92, 246, 0.3);
}

.submit-button:hover:not(:disabled) {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(139, 92, 246, 0.4);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 15px 0 rgba(139, 92, 246, 0.2);
}

#button-spinner {
    margin-left: 0.5rem;
}

.message-box {
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: left;
    border: 1px solid;
    margin-top: 1.5rem;
}

.message-box i:first-child {
    font-size: 1.5rem;
    float: left;
    margin-right: 1rem;
    line-height: 1;
    margin-top: 0.125rem;
}

.message-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 500;
}

.message-content {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.message-box-success {
    background-color: #f0fdf4;
    border-color: #bbf7d0;
    color: #15803d;
}

.message-box-success .message-content {
    color: #166534;
}

.message-box-error {
    background-color: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.message-box-error .message-content {
    color: #991b1b;
}

.next-steps {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #bbf7d0;
}

.next-steps h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: #15803d;
}

.next-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.next-steps li {
    font-size: 0.9rem;
    color: #166534;
    display: flex;
    align-items: center;
}

.next-steps li i {
    margin-right: 0.75rem;
    width: 1.25em;
    text-align: center;
    color: #22c55e;
}

.card-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.help-text {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.help-text a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.help-text a:hover {
    text-decoration: underline;
}

.back-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-home-link:hover {
    color: #4f46e5;
}

.hidden {
    display: none !important;
}