/* ══════════════════════════════════════════════════════════════
   LAYHOSTING — Password Recovery pages (forgot / reset)
   Brand-styled shell: gradient banner + logo, centered card, footer.
   Loaded AFTER ../styles.css so it overrides the legacy blue palette.
   ══════════════════════════════════════════════════════════════ */

:root {
    --brand: #9200d4;
    --brand-dark: #5b21b6;
    --brand-grad: linear-gradient(135deg, #9200d4 0%, #5b21b6 100%);
    --page-bg: linear-gradient(160deg, #f5f3fb 0%, #e7e1f3 100%);
    --text: #241a33;
    --muted: #5f5675;
    --card: #ffffff;
    --border: rgba(61, 26, 120, 0.12);
    --success: #06d6a0;
    --danger: #ef4444;
    --info: #3b82f6;
}

html, body { height: 100%; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, sans-serif;
    background: var(--page-bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ── Page shell: banner / main / footer ── */
.auth-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Banner ── */
.auth-banner {
    position: relative;
    overflow: hidden;
    background: var(--brand-grad);
    color: #fff;
    text-align: center;
    margin: 0;
    border-radius: 0;
    padding: 48px 24px 56px;
    box-shadow: 0 10px 30px rgba(91, 33, 182, 0.25);
}
.auth-banner::after {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, transparent 70%);
    pointer-events: none;
}
.auth-banner::before {
    content: '';
    position: absolute;
    bottom: -140px; left: -60px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, transparent 70%);
    pointer-events: none;
}
.auth-banner-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

/* Brand hero watermark: large faded Layhosting logo on the right of the banner */
.auth-banner-decor {
    position: absolute;
    top: 50%; right: -30px;
    transform: translateY(-50%);
    width: 300px; height: 300px;
    background: url('logo.png') center / contain no-repeat;
    filter: brightness(0) invert(1);
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.auth-logo {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    padding: 3px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.auth-brand-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.2px;
    color: #fff;
}
.auth-brand-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.auth-banner-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 30px;
    margin: 0 0 8px;
    color: #fff;
    letter-spacing: -0.3px;
}
.auth-banner-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ── Main / card ── */
.auth-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 20px;
    margin-top: -32px;
}
.auth-card {
    width: 100%;
    max-width: 460px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow: 0 18px 45px rgba(61, 26, 120, 0.16);
}

/* ── Form ── */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
}
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 13px 15px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: #fbfaff;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.form-group input::placeholder { color: #a99fc0; }
.form-group input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(146, 0, 212, 0.18);
    background: #fff;
}

.btn-primary {
    display: block;
    width: 100%;
    padding: 14px 20px;
    margin-top: 6px;
    border: none;
    border-radius: 10px;
    background: var(--brand-grad);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.2px;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
    box-shadow: 0 8px 20px rgba(146, 0, 212, 0.28);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(146, 0, 212, 0.36);
    filter: brightness(1.04);
}
.btn-primary:active { transform: translateY(0); }

/* ── Password requirements ── */
.password-requirements {
    background: #f6f2fc;
    border-left: 4px solid var(--brand);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
    font-size: 13px;
    color: var(--muted);
}
.password-requirements strong {
    display: block;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 6px;
}
.password-requirements ul { margin: 0; padding-left: 18px; }
.password-requirements li { margin: 2px 0; }

/* ── Alerts ── */
.alert {
    padding: 13px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
    border-left: 4px solid transparent;
}
.alert.show { display: block; }
.alert-success { background: #d1fae5; color: #065f46; border-left-color: var(--success); }
.alert-error   { background: #fee2e2; color: #991b1b; border-left-color: var(--danger); }
.alert-info    { background: #dbeafe; color: #1e40af; border-left-color: var(--info); }

/* ── Back link ── */
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.18s;
}
.auth-back:hover { color: var(--brand); }
.auth-back-wrap { text-align: center; }

/* ── Footer ── */
.auth-footer {
    text-align: center;
    padding: 28px 20px 22px;
    font-size: 12px;
    color: var(--muted);
}
.auth-footer a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }
.auth-footer .legal { margin-top: 4px; color: #948aa8; font-size: 11px; }

/* ── Responsive ── */
@media (max-width: 640px) {
    .auth-banner { padding: 36px 18px 46px; }
    .auth-banner-title { font-size: 24px; }
    .auth-brand-name { font-size: 20px; }
    .auth-card { padding: 28px 22px; }
    .auth-banner-decor { width: 190px; height: 190px; right: -34px; opacity: 0.12; }
}
