/* Disciplix — Forgot Password
   Matching the vibrant blue-and-white login/register design.
   Load this stylesheet after styles.css and utils.css. */

:root {
    --fp-blue: #18548b;
    --fp-blue-dark: #07437b;
    --fp-button: #015292;
    --fp-button-hover: #013259;
    --fp-pale: #e3eef8;
    --fp-border: #c4d9ee;
    --fp-text: #173f65;
    --fp-muted: #5d7893;
    --fp-arabic: "Amiri", Arial, sans-serif;
    --fp-serif: "IBM Plex Serif", Georgia, serif;
    --fp-logo: "Lancelot", serif;
}

html {
    min-height: 100%;
    height: auto !important;
    overflow-y: auto !important;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    height: auto !important;
    margin: 0;
    padding: 42px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto !important;
    position: relative;
    isolation: isolate;
    color: var(--fp-text);
    font-family: var(--fp-arabic);
    background:
        radial-gradient(ellipse at 12% 16%, rgba(67, 145, 211, .20), transparent 31%),
        radial-gradient(ellipse at 88% 82%, rgba(24, 84, 139, .17), transparent 32%),
        linear-gradient(135deg, #f7fbff 0%, #eaf4fd 48%, #dcecfb 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
}

body::before {
    width: 340px;
    height: 340px;
    top: -150px;
    right: -95px;
    background: radial-gradient(circle, rgba(24, 84, 139, .22), rgba(24, 84, 139, 0) 70%);
}

body::after {
    width: 420px;
    height: 420px;
    bottom: -230px;
    left: -120px;
    background: radial-gradient(circle, rgba(1, 82, 146, .16), rgba(1, 82, 146, 0) 70%);
}

.container {
    width: min(100%, 490px);
    max-width: 490px;
    margin: 0;
    padding: 0;
    display: block;
    text-align: center;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 1px solid rgba(24, 84, 139, .20);
    box-shadow: 0 24px 65px rgba(19, 66, 108, .18), 0 5px 18px rgba(19, 66, 108, .07);
    backdrop-filter: none;
}

.container::before {
    content: "";
    display: block;
    height: 8px;
    background: linear-gradient(90deg, #07437b 0%, #18548b 55%, #5b9ed6 100%);
}

.login-form {
    width: 100%;
    padding: 38px 42px 36px;
    text-align: center;
    position: relative;
}

h2.form-logo,
.login-form h2.form-logo {
    margin: 0 0 12px;
    color: var(--fp-blue);
    font-family: var(--fp-logo);
    font-weight: 400;
    font-size: clamp(48px, 8vw, 60px);
    line-height: 1.1;
    letter-spacing: .2px;
}

.login-form > div[style] {
    margin: 0 auto 27px !important;
    max-width: 350px;
    color: var(--fp-muted) !important;
    font-family: var(--fp-arabic);
    font-size: 18px;
    line-height: 1.8 !important;
}

#forgot-password-form {
    width: 100%;
}

#forgot-password-form .input-group {
    width: 100%;
    margin-bottom: 22px;
    text-align: left;
}

#forgot-password-form .input-group label {
    display: block;
    margin: 0 0 8px;
    color: var(--fp-blue-dark);
    font-family: var(--fp-arabic);
    font-weight: 700;
    font-size: 17px;
    text-align: left;
}

#forgot-password-form .input-group input {
    display: block;
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--fp-border);
    border-radius: 12px;
    outline: none;
    background: #f6faff;
    color: #173f65;
    font-family: var(--fp-serif);
    font-size: 16px;
    direction: ltr;
    text-align: left;
    box-shadow: inset 0 1px 2px rgba(24, 84, 139, .035);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#forgot-password-form .input-group input::placeholder {
    color: #91a7bc;
    opacity: 1;
}

#forgot-password-form .input-group input:hover {
    border-color: #8bb5dc;
}

#forgot-password-form .input-group input:focus {
    background: #fff;
    border-color: var(--fp-blue);
    box-shadow: 0 0 0 4px rgba(24, 84, 139, .13);
}

#reset-button,
#forgot-password-form button[type="submit"] {
    display: block;
    width: 100%;
    min-height: 54px;
    margin: 7px 0 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: var(--fp-button);
    color: #fff;
    font-family: var(--fp-arabic);
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(1, 82, 146, .20);
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

#reset-button:hover:not(:disabled) {
    background: var(--fp-button-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 23px rgba(1, 82, 146, .25);
}

#reset-button:active:not(:disabled) {
    transform: translateY(0);
}

#reset-button:disabled {
    opacity: .72;
    cursor: wait;
    box-shadow: none;
}

.form-label {
    display: block;
    margin-top: 22px;
    color: var(--fp-muted);
    font-family: var(--fp-arabic);
    font-size: 16px;
    line-height: 1.7;
}

.form-label a {
    color: var(--fp-button);
    font-weight: 700;
    text-decoration: none;
    margin-inline-start: 4px;
    transition: color .2s ease;
}

.form-label a:hover {
    color: var(--fp-button-hover);
    text-decoration: underline;
}

button,
input,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(1, 82, 146, .28);
    outline-offset: 3px;
}

@media (max-width: 540px) {
    body {
        padding: 22px 13px;
    }

    .container {
        border-radius: 20px;
    }

    .login-form {
        padding: 31px 23px 28px;
    }

    .login-form > div[style] {
        font-size: 17px;
        margin-bottom: 23px !important;
    }

    #forgot-password-form .input-group input {
        height: 52px;
    }

    #reset-button {
        min-height: 52px;
    }
}

@media (max-width: 360px) {
    .login-form {
        padding: 27px 18px 24px;
    }

    .form-label {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
