/* /css/password_form.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f1f5f9;
    color: #334155;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 1rem;
    box-sizing: border-box;
}
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 400px;
    width: 100%;
}
.logo {
    max-width: 180px;
    margin-bottom: 1.5rem;
}
h2 {
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}
p {
    color: #64748b;
    margin: 0 0 1.5rem 0;
}
p.error {
    color: #ef4444;
    font-weight: 500;
    background: #fee2e2;
    padding: 0.5rem;
    border-radius: 5px;
}
input[type="password"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
    margin-bottom: 1rem;
}
button {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}
button:hover {
    background-color: #218838;
}

/* --- NEW: Style for the Dashboard Link on Error Pages --- */
.dashboard-link {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    background-color: #e5e7eb;
    border-radius: 5px;
    transition: background-color 0.2s;
}
.dashboard-link:hover {
    background-color: #d1d5db;
}

/* --- NEW: Style for the Login Button on intermediate pages --- */
.login-link-button {
    display: inline-block;
    width: 100%;
    box-sizing: border-box; /* Important for width: 100% */
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    background-color: #28a745; /* Green to match other primary actions */
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none; /* Remove underline from the link */
    transition: background-color 0.2s;
}
.login-link-button:hover {
    background-color: #218838;
}

/* --- NEW: Style for the password form itself --- */
.password-form {
    margin-top: 1.5rem;
}
