/* Password Forgot Page Styles - password_forgot.css */

/* Main section for password reset forms (similar to reset_password.css but for forgot) */
.password-reset-section {
    padding: 60px 20px;
    background-color: var(--background-color); /* Light background */
    display: flex;
    justify-content: center; /* Center the content horizontally */
    align-items: flex-start; /* Align items to the start vertically */
    min-height: calc(100vh - 200px); /* Adjust based on header/footer height */
}

.reset-form-container {
    background-color: var(--form-background-color); /* White background for the form card */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1); /* Soft shadow */
    width: 100%;
    max-width: 500px; /* Max width for the form container */
    text-align: center; /* Center content inside the container */
}

.reset-form-container h2 {
    color: var(--primary-color); /* Green from global.css */
    margin-bottom: 25px;
    font-size: 2em;
    font-weight: 700;
}

.reset-intro-text {
    color: var(--dark-text-for-light-bg);
    margin-bottom: 25px;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Form group styling */
.reset-form-container .form-group {
    margin-bottom: 20px;
    text-align: left; /* Align labels and inputs to the left within their group */
    max-width: 400px; /* Limit width of form groups */
    margin-left: auto; /* Center form groups */
    margin-right: auto; /* Center form groups */
}

.reset-form-container label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-text-color);
    font-weight: 600;
    font-size: 0.95em;
}

.reset-form-container input[type="email"] {
    width: 100%; /* Make inputs fill their form-group container */
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.reset-form-container input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.2);
    outline: none;
}

/* Button styling - ENSURE THIS IS ORANGE */
.reset-form-container .btn-primary {
    background-color: var(--logo-orange-button-color); /* This should be your orange color from global.css */
    color: var(--button-text-color); /* White text */
    padding: 12px 30px; /* Consistent button padding */
    border: none;
    border-radius: 8px; /* Consistent button border-radius */
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: auto; /* Allow button to size based on content */
    min-width: 200px; /* Make button wider */
    display: block; /* Make button a block element to center it */
    margin: 25px auto 20px auto; /* Center the button */
}

.reset-form-container .btn-primary:hover {
    background-color: var(--primary-hover-color); /* Darker orange on hover */
    transform: translateY(-2px);
}

/* Message styling (from global.css, but ensure it's applied) */
.reset-form-container .message {
    margin-top: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.95em;
    text-align: center;
    display: none; /* Hidden by default, shown by JS */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reset-form-container .message.success {
    background-color: #e6ffe6; /* Light green */
    color: #28a745; /* Darker green */
    border: 1px solid #28a745;
}

.reset-form-container .message.error {
    background-color: #ffe6e6; /* Light red */
    color: #dc3545; /* Darker red */
    border: 1px solid #dc3545;
}

.reset-form-container .message.info {
    background-color: #e6f7ff; /* Light blue */
    color: #007bff; /* Darker blue */
    border: 1px solid #007bff;
}

/* Login link text */
.login-link-text {
    margin-top: 20px;
    font-size: 1em;
    color: var(--dark-text-for-light-bg);
}

.login-link-text .text-link {
    color: var(--primary-color); /* Orange link color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link-text .text-link:hover {
    color: var(--primary-hover-color);
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .reset-form-container {
        padding: 30px 20px;
        max-width: 90%;
    }

    .reset-form-container h2 {
        font-size: 1.8em;
    }

    .reset-form-container .form-group {
        max-width: 100%; /* Allow full width on small screens */
    }

    .reset-form-container .btn-primary {
        min-width: 100%; /* Make button full width on small screens */
        padding: 10px 20px;
        font-size: 1em;
    }
}
