﻿/* Page Background */
body {
    background-color: #f4f6f9;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Center the card */
.forgot-password-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Card Styling */
.forgot-password-card {
    background: #ffffff;
    width: 100%;
    max-width: 500px;
    padding: 45px 35px;
    border-radius: 16px; /* softer */
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); /* more modern */
    transition: all 0.25s ease;
}

/* Entrance Animation */
.animate-card {
    transform: translateY(-20px);
    opacity: 0;
    animation: fadeInCard 0.5s forwards;
}

@keyframes fadeInCard {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Headings */
.forgot-password-card h2 {
    font-weight: 700;
    color: #1f2937;
}

.forgot-password-card p {
    font-size: 0.95rem;
    color: #6c757d;
}


/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    font-weight: 600;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #16a34a, #15803d);
    }

.btn-outline-secondary {
    opacity: 0.8;
}

    .btn-outline-secondary:hover {
        opacity: 1;
    }
/* Alert */
.alert {
    font-size: 0.9rem;
    padding: 12px 15px;
    border-radius: 8px;
}

/* Loader overlay */
#loader-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    z-index: 9999;
}

.loader {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.25);
    border-top-color: #22c55e;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.forgot-password-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px rgba(0,0,0,0.12);
}

.form-control {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid #d1d5db;
}

    .form-control:focus {
        border-color: #22c55e; /* match your system green */
        box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
    }

.btn.loading {
    pointer-events: none;
    opacity: 0.7;
}
