body {
    margin: 0;
    background: #ffffff;
    font-family: 'Open Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    margin: 10px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-reset-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.password-reset-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 2.5rem 2rem;
    max-width: 370px;
    width: 100%;
    text-align: center;
}

.password-reset-logo img {
    width: 150px;
    height: 70px;
    object-fit: contain;
    border-radius: 6px;
    margin: 0;
}

.password-reset-card h2 {
    color: #0a2342;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.password-reset-card p {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.password-reset-card label {
    display: block;
    text-align: left;
    margin-bottom: 0.5rem;
    color: #0a2342;
    font-weight: 500;
}

/* Match Login input/label styles but scoped to the password-reset card */
.password-reset-card .form-label {
    width: 100%;
    max-width: none;
    margin: 0 0 8px 0;
    display: block;
    color: rgb(27, 48, 71);
    font-weight: 600;
    font-size: 14px;
    text-align: left;
}

.password-reset-card .form-input {
    width: 100%;
    max-width: none;
    margin: 0 0 12px 0;
    display: block;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    background-color: white;
    height: 44px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.password-reset-card .form-input:focus {
    outline: none;
    border-color: #394a65;
}

.password-reset-card input[type="email"] {
    width: 100%;
    box-sizing: border-box;
}

/* Field-level error messages: same width as the input and reduced vertical gap */
.password-reset-card .input-error-wrapper .error-message,
.password-reset-card .input-error-wrapper .field-error,
.password-reset-card .input-error-wrapper .field-error-message {
    width: 100%;
    max-width: none;
    margin: 8px 0 12px 0;
    box-sizing: border-box;
    text-align: left;
}

.password-reset-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}
/* Inner container to center equal-width buttons */
.action-center {
    display: flex;
    gap: 32px;
    justify-content: center;
}
.btn {
    padding: 10px 30px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
}
.btn-cancel {
    background-color: #d32f2f;
    color: white;
}
.btn-cancel:hover { background-color: #b71c1c; }
.btn-confirm, .btn-save {
    background-color: #4CAF50;
    color: white;
}
.btn-confirm:hover, .btn-save:hover { background-color: #45a049; }
.btn-danger {
    background-color: #d32f2f;
    color: white;
}
.btn-danger:hover { background-color: #b71c1c; }

/* Match Users modal equal button sizing */
.modal-equal-btn {
    min-width: 140px;
    width: 140px;
    flex: none;
}

/* Ensure buttons inside action-center don't stretch */
.action-center .btn {
    flex: 0 0 auto;
}

.error-message {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px auto;
    display: block;
    color: #b8292f;
    font-size: 14px;
    padding: 12px;
    background-color: #ffebee;
    border-radius: 4px;
    border-left: 4px solid #b8292f;
    text-align: center;
}

.success-message {
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px auto;
    display: block;
    color: #4aa866;
    font-size: 14px;
    padding: 12px;
    background-color: #e8f5e8;
    border-radius: 4px;
    border-left: 4px solid #53b771;
    text-align: center;
}