/* Prime Patient — Auth pages */

:root {
    --patient-auth-bg: #f0fdfa;
    --patient-auth-ink: #0f172a;
    --patient-auth-muted: #64748b;
    --patient-auth-teal: #14b8a6;
    --patient-auth-teal-dark: #0f766e;
    --patient-auth-card: #ffffff;
    --patient-auth-border: rgba(226, 232, 240, 0.9);
    --patient-auth-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
}

body.patient-auth-body {
    font-family: 'Cairo', sans-serif;
    background: var(--patient-auth-bg);
    color: var(--patient-auth-ink);
    overflow-x: hidden;
}

.patient-auth-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    overflow: hidden;
}

.patient-auth-page__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.patient-auth-page__orb--1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: rgba(45, 212, 191, 0.35);
}

.patient-auth-page__orb--2 {
    width: 360px;
    height: 360px;
    bottom: -100px;
    left: -60px;
    background: rgba(56, 189, 248, 0.28);
}

.patient-auth-card {
    position: relative;
    width: min(100%, 420px);
    background: var(--patient-auth-card);
    border: 1px solid var(--patient-auth-border);
    border-radius: 28px;
    padding: 2rem 1.75rem;
    box-shadow: var(--patient-auth-shadow);
    visibility: hidden;
}

.patient-auth-brand {
    text-align: center;
    margin-bottom: 1.75rem;
}

.patient-auth-brand__logo {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #2dd4bf, #0ea5e9);
    overflow: hidden;
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
}

.patient-auth-brand__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.patient-auth-brand h1 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.4;
}

.patient-auth-brand p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--patient-auth-muted);
    line-height: 1.6;
}

.patient-auth-alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #b91c1c;
    font-size: 0.85rem;
    font-weight: 600;
}

.patient-auth-field {
    margin-bottom: 1.25rem;
}

.patient-auth-field label {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--patient-auth-ink);
}

.patient-auth-phone {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.patient-auth-phone:focus-within {
    border-color: var(--patient-auth-teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.patient-auth-phone__code {
    flex-shrink: 0;
    width: 110px;
    padding: 0 0.5rem;
    border: none;
    border-left: 1.5px solid #e2e8f0;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--patient-auth-teal-dark);
    cursor: pointer;
    direction: ltr;
    text-align: center;
}

.patient-auth-phone__input {
    flex: 1;
    min-width: 0;
    padding: 0.95rem 1rem;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--patient-auth-ink);
    direction: ltr;
    text-align: left;
}

.patient-auth-phone__input:focus,
.patient-auth-phone__code:focus {
    outline: none;
}

.patient-auth-phone__input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.patient-auth-text-input {
    width: 100%;
    padding: 0.95rem 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: var(--patient-auth-ink);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.patient-auth-text-input:focus {
    outline: none;
    border-color: var(--patient-auth-teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.patient-auth-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #14b8a6, #0ea5e9);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(20, 184, 166, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.patient-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(20, 184, 166, 0.42);
}

.patient-auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.82rem;
    color: var(--patient-auth-muted);
}

.patient-auth-footer a {
    color: var(--patient-auth-teal-dark);
    font-weight: 700;
    text-decoration: none;
}

.patient-auth-footer a:hover {
    text-decoration: underline;
}

.patient-auth-hint {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--patient-auth-muted);
    line-height: 1.5;
}

.patient-auth-progress {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.patient-auth-progress span {
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background: #e2e8f0;
}

.patient-auth-progress span.is-active {
    background: linear-gradient(90deg, #14b8a6, #0ea5e9);
}

.patient-auth-progress span.is-done {
    background: #14b8a6;
}
