/* Password Reset / Forgot Password flow (standalone, pre-auth, responsive).
   Lives under ~/Content (publicly served, no auth) so it loads for anonymous users.
   Self-contained: includes a minimal reset so it does not depend on Content_Modern. */

/* Minimal reset */
* { box-sizing: border-box; }
body, div, p, h1, h2, h3, h4, ul, li, input, label {
    margin: 0;
    padding: 0;
}
ul { list-style: none; }

.pwr-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F0F3F3;
    color: #333F48;
    font-family: Arial, Helvetica, sans-serif;
}

.pwr-topbar {
    text-align: center;
    background: #fff;
    padding: 20px 16px;
    border-bottom: 1px solid #e9ecef;
}

.pwr-topbar img {
    width: 150px;
    max-width: 60%;
    height: auto;
}

.pwr-container {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 16px;
    box-sizing: border-box;
}

.pwr-card {
    width: 460px;
    max-width: 100%;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 6px rgba(0, 64, 110, 0.08);
    background:
        linear-gradient(rgba(238, 244, 248, 0.9), rgba(232, 240, 245, 0.9)) padding-box,
        linear-gradient(135deg, rgba(0, 64, 110, 0.3), rgba(82, 171, 204, 0.2), transparent) border-box;
    border: 2px solid transparent;
    overflow: hidden;
    box-sizing: border-box;
}

.pwr-header {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #00406E;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 64, 110, 0.08);
    text-align: left;
}

.pwr-header i {
    margin-right: 8px;
    color: #00406E;
}

.pwr-body {
    padding: 24px;
    background: transparent;
}

.pwr-intro {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    margin: 0 0 20px 0;
    background: rgba(0, 64, 110, 0.06);
    border: 1px solid rgba(0, 64, 110, 0.15);
    color: #00406E;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
}

.pwr-intro::before {
    content: "\f05a";
    font-family: FontAwesome;
    font-size: 16px;
    margin-top: 1px;
    flex-shrink: 0;
}

.pwr-field {
    margin-bottom: 16px;
}

.pwr-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 6px;
}

.pwr-body input[type="text"],
.pwr-body input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 15px;
    color: #333F48;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.pwr-body input[type="text"]:focus,
.pwr-body input[type="password"]:focus {
    border-color: #00406E;
    box-shadow: 0 0 0 3px #E6F2F8;
    outline: none;
}

.pwr-btn {
    width: 100%;
    padding: 12px;
    background: #00406E;
    color: #fff;
    border: 1px solid #00406E;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 180ms ease;
}

.pwr-btn:hover {
    background: #005999;
    border-color: #005999;
    box-shadow: 0 2px 8px rgba(0, 64, 110, 0.3);
}

.pwr-error {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #721c24;
    font-size: 14px;
    text-align: center;
}

.pwr-error::before {
    content: "\f06a";
    font-family: FontAwesome;
    margin-right: 6px;
}

.field-validation-error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin: -8px 0 12px 0;
}

/* jQuery Validate client-side error labels */
.pwr-body label.error,
.pwr-body .error {
    display: block;
    color: #dc3545;
    font-size: 13px;
    margin: 4px 0 12px 0;
}

/* Highlight invalid inputs */
.pwr-body input.error,
.pwr-body input.input-validation-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

/* ASP.NET MVC server-side validation summary */
.pwr-body .validation-summary-errors {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    background: rgba(220, 53, 69, 0.06);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
    font-size: 14px;
}

.pwr-body .validation-summary-errors ul {
    margin: 0;
    padding-left: 18px;
}

.pwr-body .validation-summary-errors li {
    list-style: disc;
    margin-bottom: 4px;
}

.pwr-back {
    text-align: center;
    margin-top: 16px;
}

.pwr-back a,
.pwr-link a {
    color: #00406E;
    font-size: 14px;
    text-decoration: none;
}

.pwr-back a:hover,
.pwr-link a:hover {
    text-decoration: underline;
}

/* Security questions list */
.pwr-question {
    margin-bottom: 18px;
}

.pwr-question-text {
    font-size: 14px;
    font-weight: 600;
    color: #333F48;
    margin-bottom: 8px;
}

/* Password rules */
.pwr-rules {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    background: rgba(0, 64, 110, 0.04);
    border: 1px solid rgba(0, 64, 110, 0.12);
}

.pwr-rules strong {
    display: block;
    color: #00406E;
    margin-bottom: 8px;
    font-size: 14px;
}

.pwr-rules ul {
    margin: 0;
    padding-left: 18px;
}

.pwr-rules li {
    list-style: disc;
    font-size: 13px;
    color: #495057;
    margin-bottom: 4px;
    line-height: 1.4;
}

/* Success */
.pwr-success-icon {
    text-align: center;
    font-size: 48px;
    color: #28a745;
    margin-bottom: 12px;
}

.pwr-success-text {
    text-align: center;
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.pwr-footer {
    flex-shrink: 0;
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: #6c757d;
}

@media (max-width: 480px) {
    .pwr-card {
        width: 100%;
    }

    .pwr-container {
        padding: 24px 12px;
    }

    .pwr-body {
        padding: 24px 16px;
    }

    .pwr-topbar img {
        width: 120px;
    }
}
