/* Forgot password page theme (adapted from SSO login styling) */
:root {
    --fp-bg: #1a1a1a;
    --fp-bg-grid: rgba(255, 255, 255, 0.02);
    --fp-accent: #ff5722;
    --fp-accent-hover: #e64a19;
    --fp-text: #ffffff;
    --fp-text-muted: #9ca3af;
    --fp-input-bg: #343434;
    --fp-input-border: rgba(255, 255, 255, 0.2);
    --fp-input-placeholder: #6b7280;
}

.fp-body {
    background: var(--fp-bg);
    min-height: 100vh;
    margin: 0;
}

.fp-auth-wrapper {
    min-height: 100vh;
    display: flex;
}

/* Left panel: dark charcoal with diagonal grid */
.auth-left-panel {
    flex: 0 0 50%;
    min-height: 100vh;
    padding: 90px 60px 8px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--fp-bg);
    background-image:
        url("../images/95a5cf881ee07de1f3f9804a79d7fa0353fbeca8.jpg"),
        linear-gradient(135deg, var(--fp-bg-grid) 1px, transparent 1px),
        linear-gradient(-45deg, var(--fp-bg-grid) 1px, transparent 1px);
    background-repeat: no-repeat, repeat, repeat;
    background-position:
        top center,
        top left,
        top left;
    background-size:
        cover,
        28px 28px,
        28px 28px;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
}

.auth-left-panel-inner {
    flex: 1;
    display: flex;
    align-items: start;
    justify-content: center;
}

.auth-left {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
}

/* Alerts */
.fp-alert {
    margin-bottom: 16px;
    border-radius: 10px;
    font-size: 14px;
}
.fp-alert.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #f8b4c4;
}
.fp-alert.alert-info {
    background: rgba(13, 202, 240, 0.1);
    border: 1px solid rgba(13, 202, 240, 0.3);
    color: #9dd5eb;
}

/* Logo */
.fp-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.fp-logo img {
    height: 28px;
}

/* Headings */
.fp-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--fp-text);
    margin-bottom: 20px;
    line-height: 1.3;
}

.fp-subheading {
    font-size: 16px;
    font-weight: 300;
    color: var(--fp-text);
    margin-top: -10px;
    margin-bottom: 22px;
}

/* Form */
.fp-form .form-group {
    margin-bottom: 19px;
}

.fp-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--fp-text);
    margin-bottom: 8px;
}

.fp-form .form-control {
    width: 100%;
    padding: 12px 18px;
    font-size: 15px;
    color: var(--fp-text);
    background: var(--fp-input-bg);
    border: 1px solid var(--fp-input-border);
    border-radius: 12px;
    transition: border-color 0.2s;
}

.fp-form .form-control::placeholder {
    color: var(--fp-input-placeholder);
}

.fp-form .form-control:focus {
    border-color: var(--fp-accent);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 87, 34, 0.2);
}

.fp-form .form-control.is-invalid {
    border-color: #ef4444;
}

/* Primary button */
.fp-btn-primary {
    width: 100%;
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    color: var(--fp-text);
    background: var(--fp-accent);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 14px;
}

.fp-btn-primary:hover {
    background: var(--fp-accent-hover);
}

.fp-btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

.fp-btn-primary:disabled:hover {
    background: var(--fp-accent);
}

.fp-btn-primary[aria-busy="true"] {
    cursor: wait;
}

.fp-btn-secondary {
    width: 100%;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    color: var(--fp-text);
    background: #1f1f1f;
    border: 1px solid #575659;
    border-radius: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background 0.2s,
        border-color 0.2s;
    margin-top: 14px;
}

.fp-btn-secondary:hover {
    background: #4b5563;
    border-color: #525252;
}

/* Right panel – video */
.video-side {
    flex: 1;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.video-side::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(31, 31, 31, 0.9) 0%,
            rgba(31, 31, 31, 0.2) 43.04%
        ),
        linear-gradient(
            0deg,
            rgba(31, 31, 31, 0.9) 0%,
            rgba(31, 31, 31, 0.2) 43.04%
        );
}

.video-side video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Confirmation copy */
.fp-body-text {
    color: var(--fp-text);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.fp-body-text-muted {
    color: var(--fp-text-muted);
    font-size: 14px;
}

.fp-resend-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35em;
    margin-top: 20px;
}

.fp-inline-resend-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.fp-link-accent {
    color: var(--fp-accent);
    font-weight: 600;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

.fp-link-accent:hover {
    color: var(--fp-accent-hover);
    text-decoration: underline;
}

.fp-link-accent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fp-link-accent:disabled:hover {
    color: var(--fp-accent);
    text-decoration: none;
}

.fp-link-accent[aria-busy="true"] {
    cursor: wait;
}

/* Ghost / outline secondary (matches confirmation mockup) */
.fp-btn-ghost {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.85) !important;
}

.fp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: #ffffff !important;
}

/* Reset password page – accent closer to mockup */
.fp-page-reset {
    --fp-accent: #ff6333;
    --fp-accent-hover: #e85525;
    --fp-success: #00c48c;
    --fp-error: #ff4d4d;
}

/* Password field with visibility toggle */
.fp-input-with-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.fp-input-with-toggle .form-control {
    padding-right: 48px;
}

.fp-input-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--fp-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.fp-input-toggle:hover {
    color: var(--fp-text);
}

.fp-input-toggle svg {
    width: 20px;
    height: 20px;
}

.fp-input-with-toggle .fp-field-error-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: none;
    pointer-events: none;
    align-items: center;
    line-height: 0;
}

.fp-input-with-toggle .fp-field-error-icon img {
    display: block;
    width: 18px;
    height: 18px;
}

.fp-input-with-toggle:has(.form-control.is-invalid) .fp-field-error-icon {
    display: flex;
}

.fp-input-with-toggle:has(.form-control.is-invalid) .fp-input-toggle {
    right: 40px;
}

/* Password requirement checklist */
.fp-password-rules {
    list-style: none;
    margin: 12px 0 0 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.65;
}

.fp-password-rules li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.fp-password-rules li.fp-rule-met {
    color: var(--fp-success);
}

.fp-rule-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.fp-rule-icon img {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    display: block;
}

.fp-rule-icon .fp-rule-icon-okay {
    display: none;
}

.fp-password-rules li.fp-rule-met .fp-rule-icon .fp-rule-icon-default {
    display: none;
}

.fp-password-rules li.fp-rule-met .fp-rule-icon .fp-rule-icon-okay {
    display: block;
}

.fp-field-hint {
    font-size: 12px;
    color: #ef4444;
    margin-top: 8px;
}

/* Responsive: hide video, full-width form */
@media (max-width: 991px) {
    .auth-left-panel {
        flex: 1 1 100%;
        transform: none;
        box-shadow: none;
    }
    .auth-left-panel > * {
        transform: none;
    }
}
