/* Pulse — login and password pages (layouts/auth + components/auth-card). Loaded after pulse-theme.css. */
/* the page under the login has the login's colors: on an iPad, Safari's collapsing toolbar showed a light strip */
body { background: linear-gradient(150deg, #1667e3 0%, #1252b6 55%, #0f8f86 100%); min-height: 100vh; min-height: 100dvh;
    font-family: "IBM Plex Sans Arabic", "Inter Tight", system-ui, sans-serif; }

.pulse-auth { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; gap: clamp(48px, 7vw, 112px); padding: 32px 24px; position: relative; overflow: hidden;
    background:
        radial-gradient(55% 50% at 15% 10%, rgba(255, 255, 255, .16), transparent 70%),
        radial-gradient(50% 45% at 90% 95%, rgba(39, 195, 207, .40), transparent 70%),
        linear-gradient(150deg, #1667e3 0%, #1252b6 55%, #0f8f86 100%); }
.pulse-auth::after { /* soft rings */
    content: ""; position: absolute; width: 560px; height: 560px; inset-inline-end: -200px; bottom: -220px; border-radius: 50%; pointer-events: none;
    border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 0 0 60px rgba(255, 255, 255, .05), 0 0 0 120px rgba(255, 255, 255, .03); }

/* brand box beside the card (the frosted box itself is .pulse-glass in pulse-lockup.css) */
.pulse-auth-brand { position: relative; z-index: 1; flex: 0 1 460px; display: flex; justify-content: center; }
.pulse-auth-badge { font-size: 13px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); }
.pulse-auth-brand h2 { color: #fff; font-size: clamp(30px, 3vw, 42px); line-height: 1.3; font-weight: 700; margin: 0; }
.pulse-auth-brand ul { list-style: none; padding: 22px 0 0; margin: 0; display: grid; gap: 14px; width: 100%; border-top: 1px solid rgba(255, 255, 255, .2); text-align: start; }
.pulse-auth-brand li { display: flex; align-items: center; gap: 12px; font-size: 16px; color: rgba(255, 255, 255, .92); }
.pulse-auth-brand li i { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; font-size: 20px; background: rgba(255, 255, 255, .16); }

/* form side */
.pulse-auth-main { position: relative; z-index: 1; flex: 0 1 440px; display: flex; justify-content: center; }
.pulse-auth-card {
    width: 100%; max-width: 440px; background: #fff; border-radius: 22px; padding: 28px 30px 26px;
    border: 1px solid rgba(15, 26, 51, .06); box-shadow: 0 30px 60px -30px rgba(10, 30, 80, .45);
}
.pulse-auth-logo { text-align: center; margin-bottom: 16px; }
.pulse-auth-logo .pulse-lockup { margin-bottom: 0; }
.pulse-auth-logo .form-logo { max-height: 56px; width: auto; margin: 0 !important; }

.pulse-auth-card .form-label { font-weight: 500; font-size: 15px; color: #1d2740; margin-bottom: 8px; }
.pulse-auth-card .form-control {
    height: 50px; border-radius: 12px; font-size: 15px; padding: 10px 14px;
    background: #f6f8fc; border: 1px solid #e1e6f0; transition: border-color .2s, box-shadow .2s, background .2s;
}
.pulse-auth-card .form-control:focus { background: #fff; border-color: #1667e3; box-shadow: 0 0 0 4px rgba(22, 103, 227, .12); }
.pulse-auth-card input[type="email"] { direction: ltr; text-align: start; }
[dir="rtl"] .pulse-auth-card input[type="email"]:placeholder-shown { direction: rtl; }
.pulse-auth-card .form-check-input { width: 18px; height: 18px; margin: 0; }
.pulse-auth-card label.d-inline-flex { align-items: center; gap: 8px; font-size: 14px; color: #4b5675; }
.pulse-auth-card label.d-inline-flex .ms-2 { margin: 0 !important; }

.pulse-auth-card .btn-primary[type="submit"] { min-width: 150px; height: 48px; border-radius: 12px; font-size: 16px; font-weight: 600; }
.pulse-auth-card a { color: #1667e3; font-size: 14px; text-decoration: none; }
.pulse-auth-card a:hover { text-decoration: underline; }

/* demo accounts */
/* demo site: try-it card above the sign-in form */
.pulse-demo { text-align: center; padding: 14px 14px 14px; margin-bottom: 16px; border-radius: 18px;
    background: linear-gradient(160deg, #eef4ff, #e8f7f6); border: 1.5px solid #cfe0fb; }
.pulse-demo-badge { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: #1667e3; padding: 3px 12px; border-radius: 999px; margin-bottom: 8px; }
.pulse-demo-title { font-size: 18px; font-weight: 700; color: #1d2740; margin: 0 0 6px; }
.pulse-demo-text { font-size: 14px; color: #5b6580; margin: 0 0 12px; line-height: 1.6; }
.pulse-demo-or { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: #6b7591; font-size: 14px; }
.pulse-demo-or::before, .pulse-demo-or::after { content: ""; flex: 1; height: 1px; background: #e1e6f0; }
.pulse-demo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pulse-demo-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 10px; border-radius: 12px; cursor: pointer;
    background: #fff; border: 1px solid #dbe6fb; color: #1d2740; font: inherit; font-size: 14px; font-weight: 500;
    transition: background .2s, border-color .2s, transform .2s;
}
.pulse-demo-btn i { font-size: 21px; color: #1667e3; flex: none; }
.pulse-demo-btn:hover { background: #e8f0fc; border-color: #1667e3; transform: translateY(-2px); }
.pulse-demo-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.pulse-demo-btn.is-open { background: #e8f0fc; border-color: #1667e3; }
.pulse-demo-specialties { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; border-radius: 12px; background: #fff; border: 1px dashed #b9cff5; }
.pulse-demo-specialties[hidden] { display: none; }
.pulse-demo-specialties-title { grid-column: 1 / -1; font-size: 14px; color: #4b5675; }

@media (max-width: 991px) {
    .pulse-auth-brand { display: none; }
    .pulse-auth-main { flex-basis: 440px; }
}
@media (max-width: 480px) {
    .pulse-auth { padding: 16px; }
    .pulse-auth-card { padding: 24px 18px 22px; border-radius: 18px; }
    .pulse-demo-grid { gap: 8px; }
}

/* the Pulse lockup (x-application-logo) lives in pulse-lockup.css, shared with the patients' sign-in */
.pulse-auth-card form .mt-4 { margin-top: 16px !important; }
.pulse-auth-intro { text-align: center; font-size: 15px; line-height: 1.75; color: #5b6580; margin: 0 0 20px; }
