/* PNGRB Forgot Password Page Styles */

:root {
    --pngrb-primary: #1e40af;
    --pngrb-secondary: #0f766e;
    --pngrb-accent: #f59e0b;
    --pngrb-dark: #1e293b;
    --pngrb-light: #f8fafc;
    --pngrb-border: #e2e8f0;
    --pngrb-success: #059669;
    --pngrb-error: #dc2626;
    --pngrb-warning: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

* {
    font-family: inherit;
}

.govt-header {
    background: linear-gradient(to right, var(--pngrb-primary), var(--pngrb-secondary));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.govt-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.govt-logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.govt-emblem {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    padding: 8px;
}

.govt-title h1 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.govt-title p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

.main-wrapper {
    padding: 2rem 0;
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
}

.forgot-password-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 550px;
    margin: 0 auto;
}

.card-header-custom {
    background: linear-gradient(135deg, var(--pngrb-primary) 0%, var(--pngrb-secondary) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.card-header-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--pngrb-accent), #f97316);
}

.card-header-custom h2 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.card-header-custom p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.card-body-custom {
    padding: 2.5rem;
}

.info-box {
    background: #eff6ff;
    border-left: 4px solid var(--pngrb-primary);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 1.5rem;
}

.info-box p {
    margin: 0;
    font-size: 0.9rem;
    color: #1e40af;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-box i {
    color: var(--pngrb-primary);
    margin-top: 0.125rem;
}

.form-group-custom {
    margin-bottom: 1.5rem;
}

.form-label-custom {
    font-weight: 600;
    color: var(--pngrb-dark);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.form-label-custom i {
    color: var(--pngrb-primary);
}

.required-asterisk {
    color: var(--pngrb-error);
    font-weight: 700;
    margin-left: 0.25rem;
}

.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pngrb-primary);
    pointer-events: none;
    z-index: 5;
}

.form-control-custom {
    border: 2px solid var(--pngrb-border);
    border-radius: 8px;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control-custom:focus {
    border-color: var(--pngrb-primary);
    box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.1);
    outline: none;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #64748b;
    z-index: 5;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--pngrb-primary);
}

.password-strength-container {
    margin-top: 0.75rem;
}

.password-strength-label {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.password-strength-bar {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.password-strength-progress {
    height: 100%;
    width: 0%;
    transition: all 0.5s ease;
    border-radius: 3px;
}

.strength-weak {
    background: linear-gradient(90deg, #ef4444, #dc2626);
    width: 25%;
}

.strength-fair {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    width: 50%;
}

.strength-good {
    background: linear-gradient(90deg, #3b82f6, #2563eb);
    width: 75%;
}

.strength-strong {
    background: linear-gradient(90deg, #10b981, #059669);
    width: 100%;
}

.password-requirements {
    background: #f8fafc;
    border-left: 4px solid var(--pngrb-primary);
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 0 8px 8px 0;
}

.password-requirements h6 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pngrb-dark);
    margin-bottom: 0.75rem;
}

.password-requirements ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.password-requirements li {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-requirements li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #cbd5e0;
    font-size: 0.75rem;
}

.password-requirements li.valid::before {
    color: var(--pngrb-success);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: var(--pngrb-primary);
    border-color: var(--pngrb-primary);
    color: white;
}

.step.completed .step-circle {
    background: var(--pngrb-success);
    border-color: var(--pngrb-success);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--pngrb-primary);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-custom {
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--pngrb-primary) 0%, var(--pngrb-secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.btn-primary-custom:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.4);
}

.btn-primary-custom:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary-custom {
    background: white;
    color: var(--pngrb-dark);
    border: 2px solid var(--pngrb-border);
    text-decoration: none;
}

.btn-secondary-custom:hover {
    background: #f8fafc;
    border-color: var(--pngrb-dark);
    transform: translateY(-2px);
}

.btn-loading::after {
    content: '';
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.footer-note {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--pngrb-border);
    color: #64748b;
    font-size: 0.85rem;
}

.footer-note a {
    color: var(--pngrb-primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-note a:hover {
    text-decoration: underline;
}

.text-danger {
    color: var(--pngrb-error);
    font-size: 0.85rem;
    margin-top: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.text-danger::before {
    content: '\f06a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}

/* Responsive Design */
@media (max-width: 768px) {
    .govt-header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .govt-logo-section {
        flex-direction: column;
        gap: 1rem;
    }

    .card-body-custom {
        padding: 1.5rem;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn-custom {
        width: 100%;
        justify-content: center;
    }

    .step-label {
        font-size: 0.75rem;
    }
}
