/* Auth password reset pages */

@font-face {
    font-family: "Jameel Noori Nastaleeq Regular";
    src: url("../font/JameelNooriNastaleeq.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.auth-reset-body {
    margin: 0;
    min-height: 100vh;
    background: #f8fafc;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #1b2e24;
}

.auth-reset-shell {
    min-height: 100vh;
    display: flex;
}

.auth-reset-panel-brand {
    width: 46%;
    background: linear-gradient(150deg, #0a3d2e 0%, #145a3c 40%, #1a7a52 70%, #0d4f38 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.auth-reset-panel-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.auth-reset-brand-inner {
    max-width: 380px;
    text-align: center;
}

.auth-reset-logo {
    background: #fff;
    border-radius: 18px;
    display: inline-flex;
    padding: 14px 22px;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22);
}

.auth-reset-logo img {
    max-height: 110px;
    max-width: 200px;
    object-fit: contain;
}

.auth-reset-brand-inner h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
}

.auth-reset-brand-inner > p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.auth-reset-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.auth-reset-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.92rem;
    opacity: 0.92;
}

.auth-reset-form-inner {
    width: 100%;
    max-width: 420px;
}

.auth-reset-form-inner h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    color: #0f5132;
}

.auth-reset-form-inner .lead {
    color: #5f7368;
    font-size: 0.92rem;
    margin-bottom: 1.25rem;
}

.auth-reset-back {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.auth-reset-back a {
    color: #146c43;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-reset-back a:hover {
    text-decoration: underline;
}

.auth-reset-footer {
    margin-top: auto;
    padding-top: 1rem;
    color: #94a3b8;
    font-size: 0.75rem;
    text-align: center;
}

.auth-alert {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.84rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.auth-alert.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.auth-alert.success {
    background: #ecfdf3;
    border: 1px solid #b7dfc8;
    color: #0f5132;
}

.auth-info-note {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.84rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.auth-info-note i {
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.auth-info-note-urdu {
    direction: rtl;
    text-align: right;
    font-family: "Jameel Noori Nastaleeq Regular", "Jameel Noori Nastaleeq", serif;
    font-size: 20px;
    line-height: 2;
    color: #143d2b;
    margin: 0.65rem 0 0;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(30, 64, 175, 0.15);
}

.auth-field {
    margin-bottom: 1rem;
}

.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #31463b;
    margin-bottom: 0.35rem;
}

.auth-field .form-control {
    height: 46px;
    border-radius: 10px;
    border: 1px solid #d8e6dc;
}

.auth-field .form-control:focus {
    border-color: #146c43;
    box-shadow: 0 0 0 0.2rem rgba(20, 108, 67, 0.15);
}

.auth-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0a3d2e, #1a7a52);
    color: #fff;
    font-weight: 700;
    margin-top: 0.25rem;
}

.auth-btn:hover {
    opacity: 0.92;
    color: #fff;
}

.auth-btn:disabled {
    opacity: 0.75;
    cursor: wait;
}

.auth-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(248, 250, 252, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 30000;
}

.auth-loading-overlay.active {
    display: flex;
}

.auth-loading-spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(20, 108, 67, 0.18);
    border-top-color: #146c43;
    border-radius: 50%;
    animation: authResetSpin 0.8s linear infinite;
}

.auth-loading-text {
    color: #0f5132;
    font-size: 0.9rem;
    font-weight: 600;
}

@keyframes authResetSpin {
    to { transform: rotate(360deg); }
}

.auth-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #ecfdf3;
    border: 1px solid #b7dfc8;
    color: #0f5132;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ecfdf3;
    border: 2px solid #b7dfc8;
    color: #146c43;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem;
}

.auth-success-card {
    background: #fafcfa;
    border: 1px solid #d8e6dc;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.auth-success-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    font-size: 0.88rem;
}

.auth-success-row + .auth-success-row {
    border-top: 1px solid #eef4f0;
}

.auth-success-label {
    color: #5f7368;
}

.auth-success-value {
    color: #0f5132;
    font-weight: 700;
    text-align: right;
    word-break: break-all;
}

.auth-success-note {
    color: #5f7368;
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.auth-success-urdu-block {
    background: linear-gradient(180deg, #f7fbff 0%, #eef6f2 100%);
    border: 1px solid rgba(15, 81, 50, 0.12);
    border-radius: 12px;
    padding: 0.9rem 1rem 1rem;
    margin-bottom: 1rem;
}

.auth-success-urdu {
    direction: rtl;
    text-align: right;
    font-family: "Jameel Noori Nastaleeq Regular", "Jameel Noori Nastaleeq", serif;
    font-size: 21px;
    line-height: 2;
    color: #143d2b;
    margin: 0;
}

.auth-success-urdu + .auth-success-urdu {
    margin-top: 0.65rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(15, 81, 50, 0.1);
}

.auth-success-urdu .auth-urdu-email,
.auth-success-urdu .auth-urdu-hours {
    color: #0f5132;
    font-weight: normal;
}

@media (max-width: 900px) {
    .auth-reset-shell { flex-direction: column; }
    .auth-reset-panel-brand { width: 100%; padding: 1.5rem; }
    .auth-reset-features { display: none; }
}
