/* Import Google Font for clean modern typography */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Define color palette variables */
:root {
    --primary-teal: #007A5E;
    --primary-hover: #006049;
    --navy: #0B2545;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
}

/* Page background setup with PSP gate background */
body.forgot-page-body {
    background: url('../images/gerbang_psp.jpg') center/cover no-repeat fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 1.5rem 1rem;
    margin: 0;
    position: relative;
}

/* Dark overlay over background image */
body.forgot-page-body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 37, 69, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Center card container width */
.forgot-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
}

/* Compact white card styling */
.forgot-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    padding: 2.25rem 2rem;
}

/* Header section centering */
.forgot-logo-wrap {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Centered brand logos styling */
.brand-header-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 16px;
    width: 100%;
}

/* PSP logo sizing */
.psp-logo {
    height: 38px;
    object-fit: contain;
}

/* ProfileX logo sizing */
.profilex-logo {
    height: 36px;
    object-fit: contain;
}

/* Card main title styling */
.forgot-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--navy);
    margin-top: 0.5rem;
    margin-bottom: 0.35rem;
}

/* Subtitle description text */
.forgot-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.45;
}

/* Label text color adjustment */
.text-navy {
    color: var(--navy);
}

/* Position wrapper for input icon */
.forgot-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

/* Input field icon styling */
.forgot-input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
}

/* Custom text input styling */
.forgot-input {
    width: 100%;
    padding: 0.65rem 0.85rem 0.65rem 2.5rem;
    font-size: 0.82rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background-color: #ffffff;
    color: var(--navy);
    transition: border-color 0.2s;
}

/* Highlight input on focus */
.forgot-input:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: none;
}

/* Primary submit button styling */
.forgot-btn-submit {
    width: 100%;
    padding: 0.7rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    background-color: var(--primary-teal);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

/* Button hover state */
.forgot-btn-submit:hover {
    background-color: var(--primary-hover);
}

/* Back to login link styling */
.forgot-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: color 0.2s;
}

/* Back link hover state */
.forgot-back-link:hover {
    color: var(--primary-teal);
}

/* Alert box general styling */
.forgot-alert {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.78rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

/* Danger alert box styling */
.forgot-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Success alert box styling */
.forgot-alert-success {
    background-color: #eef7f3;
    border: 1px solid #007a5e;
    color: #007a5e;
}