/* Forgot Password Page Styles */

/* Form container styling */
form {
    max-width: 420px;
    margin: 0.75rem auto;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 24px rgba(30, 70, 130, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2),
        0 12px 32px rgba(30, 70, 130, 0.15);
}

/* Heading styling */
h2 {
    color: #1E4682;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1E4682, #25007c);
    border-radius: 2px;
}

/* Label styling */
label {
    display: block;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
}

/* Input styling */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    color: #1f2937;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
    font-family: 'Figtree', sans-serif;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #1E4682;
    box-shadow: 0 0 0 4px rgba(30, 70, 130, 0.1),
        0 4px 12px rgba(30, 70, 130, 0.08);
    transform: translateY(-1px);
}

input[type="email"]:hover:not(:focus),
input[type="password"]:hover:not(:focus) {
    border-color: #cbd5e1;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: #9ca3af;
}

/* Success message styling */
div[style*="color: green"] {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%) !important;
    color: #065f46 !important;
    padding: 0.625rem 0.875rem !important;
    border-radius: 8px !important;
    border-left: 3px solid #10b981 !important;
    margin-bottom: 0.75rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    animation: slideIn 0.4s ease-out !important;
}

div[style*="color: green"]::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    margin-right: 0.5rem;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* Error message styling */
div[style*="color: red"] {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%) !important;
    color: #991b1b !important;
    padding: 0.625rem 0.875rem !important;
    border-radius: 8px !important;
    border-left: 3px solid #ef4444 !important;
    margin-bottom: 0.75rem !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    display: flex !important;
    align-items: center !important;
    animation: slideIn 0.4s ease-out !important;
}

div[style*="color: red"]::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    margin-right: 0.5rem;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 0.75rem;
}

/* Button styling */
button[type="submit"] {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #1E4682 0%, #25007c 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(30, 70, 130, 0.25);
    position: relative;
    overflow: hidden;
}

button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

button[type="submit"]:hover::before {
    left: 100%;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 70, 130, 0.35),
        0 4px 12px rgba(37, 0, 124, 0.2);
}

button[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 70, 130, 0.3);
}

button[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(30, 70, 130, 0.2),
        0 8px 20px rgba(30, 70, 130, 0.35);
}

/* Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* Responsive adjustments */
@media (max-width: 576px) {
    form {
        margin: 0.5rem 1rem;
        padding: 1rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}