/* ad_reset_project/password_reset_app/static/password_reset_app/style.css */

/* --- Existing Basic styling for form inputs to make them look better with Tailwind --- */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"] {
    display: block;
    width: 100%;
    padding: 0.75rem;
    /* Increased border thickness and changed color for better visibility */
    border: 2px solid #a1a1aa; /* A slightly darker gray border (zinc-400 equivalent) */
    border-radius: 0.5rem; /* rounded-md */
    font-size: 1rem;
    line-height: 1.5;
    color: #374151; /* gray-700 */
    background-color: #ffffff; /* Explicitly set a white background */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Styling for when the input is focused (clicked into) */
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus {
    border-color: #6366f1; /* indigo-500 */
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25); /* indigo-500 with opacity for focus ring */
    outline: none; /* Remove default browser outline */
}

/* Add a style for Django's captcha input specifically */
#id_captcha_1 { /* This is the ID for the captcha text input field */
    border: 2px solid #a1a1aa; /* Apply the same border for consistency */
    background-color: #ffffff; /* Apply the same background for consistency */
}


/* --- New Header and Footer Styling --- */

/* General Body/HTML styling for full page layout */
html, body {
    height: 100%; /* Ensure html and body take full height */
    margin: 0;
    font-family: Arial, sans-serif; /* Or your preferred font */
    background-color: #f0f2f5; /* Light grey background for the main content area */
    display: flex;
    flex-direction: column; /* Allows main content to push footer to bottom */
}

/* Header Styling */
.app-header {
    background-color: #2c3e50; /* Darker blue/grey from the image */
    color: white;
    padding: 15px 20px; /* Adjust padding as needed */
    display: flex;
    justify-content: space-between; /* Puts space between left and right sections */
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    flex-shrink: 0; /* Prevents header from shrinking */
}

.header-left {
    display: flex;
    align-items: center;
}

.header-left .back-arrow {
    margin-right: 15px;
    font-size: 24px; /* Adjust icon size if using an icon font */
    color: white; /* Ensure arrow color is white */
    text-decoration: none; /* Remove underline if it's a link */
}

.header-left .app-title {
    font-size: 1.2em; /* Adjust font size */
    font-weight: bold;
    white-space: nowrap; /* Prevent title from wrapping */
}

.header-right .login-link {
    color: white;
    text-decoration: none;
    font-size: 1em;
    white-space: nowrap; /* Prevent "Login" from wrapping */
}

/* Main Content Area Styling */
.main-content {
    flex-grow: 1; /* Allows main content to take up remaining space */
    padding: 20px; /* Add some padding around the content */
    padding-top: 80px; /* Adjust based on header height, to prevent content from being hidden */
    padding-bottom: 80px; /* Adjust based on footer height, to prevent content from being hidden */
    box-sizing: border-box; /* Include padding in the element's total width and height */
    overflow-y: auto; /* Allow scrolling if content is taller than viewport */
}

/* Footer Styling */
.app-footer {
    background-color: #2c3e50; /* Same as header or slightly darker */
    color: white;
    padding: 15px 20px; /* Adjust padding as needed */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* Prevents footer from shrinking */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    z-index: 1000; /* Ensure it's above other content */
    /* Remove 'position: fixed' if using flex-direction: column on body */
    /* If you want it fixed at the very bottom of the viewport regardless of content, use: */
    /* position: fixed; */
    /* bottom: 0; */
    /* width: 100%; */
}

.footer-left img {
    height: 40px; /* Adjust logo height based on your image */
    max-width: 100%; /* Ensure logo scales down if needed */
    vertical-align: middle; /* Align image vertically */
}

.footer-right {
    text-align: right;
    font-size: 0.85em; /* Smaller font for version/copyright */
}

.footer-right p {
    margin: 0;
    line-height: 1.4;
}

/* Specific styling for the login form container */
.login-container {
    max-width: 400px; /* Adjust as needed */
    margin: 50px auto; /* Center the login box, add space from top */
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center "Login" title */
}

.login-container h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #333;
}

.login-container .form-group {
    margin-bottom: 15px;
    text-align: left; /* Align labels/inputs to left within their group */
}

.login-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.login-container button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #007bff; /* Example blue, adjust to your brand color */
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
}

.login-container button[type="submit"]:hover {
    background-color: #0056b3;
}

.login-container .forgot-password-link {
    display: block;
    margin-top: 15px;
    color: #007bff;
    text-decoration: none;
    font-size: 0.95em;
}

.login-container .forgot-password-link:hover {
    text-decoration: underline;
}

/* Message styling (Django messages) */
.messages {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    text-align: center;
}

.messages li {
    padding: 10px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-weight: bold;
}

.messages .info {
    background-color: #e0f7fa; /* Light cyan */
    color: #00796b; /* Dark cyan */
    border: 1px solid #b2ebf2;
}

.messages .success {
    background-color: #e8f5e9; /* Light green */
    color: #2e7d32; /* Dark green */
    border: 1px solid #c8e6c9;
}

.messages .warning {
    background-color: #fff8e1; /* Light yellow */
    color: #ff8f00; /* Dark yellow/orange */
    border: 1px solid #ffe0b2;
}

.messages .error {
    background-color: #ffebee; /* Light red */
    color: #c62828; /* Dark red */
    border: 1px solid #ef9a9a;
}

/* Captcha specific styling */
.captcha {
    margin-bottom: 15px;
}

.captcha img {
    border: 1px solid #ddd;
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 10px;
}

.captcha input[type="text"] {
    width: calc(100% - 130px); /* Adjust based on image width + margin */
    display: inline-block;
    vertical-align: middle;
}
