:root {
    --navy: #0b2b45;
    --blue: #0875a5;
    --teal: #27b6b0;
    --green: #87c83d;
    --text-soft: #55779b;
    --mint: #eefdfb;
    --border: #dceff3;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(11, 43, 69, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--navy);
    background: #f3fffd;
}

a {
    text-decoration: none;
    color: inherit;
}

.login-page {
    min-height: 100vh;
    padding: 20px 50px;
    background:
        radial-gradient(circle at 85% 25%, rgba(8, 117, 165, 0.08), transparent 18%),
        linear-gradient(135deg, #ffffff 0%, #f2fffd 100%);
    position: relative;
    overflow-x: hidden;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid #c9e5ee;
    background: white;
    color: var(--blue);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 10px 24px rgba(11, 43, 69, 0.06);
}

.login-logo {
    margin: 12px 0 14px 132px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 800;
    font-size: 13px;
}

.login-logo img {
    width: 120px;
    height: 85px;
    object-fit: contain;
}

.login-layout {
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}

.login-info h1 {
    font-size: clamp(38px, 3.5vw, 54px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.login-info h1 span {
    background: linear-gradient(135deg, var(--blue), var(--teal));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.login-subtitle {
    max-width: 560px;
    color: var(--text-soft);
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 34px;
}

.login-image-card {
    width: 100%;
    max-width: 520px;
    min-height: 260px;
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.login-image-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
}

.login-image-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 43, 69, 0.08), rgba(11, 43, 69, 0.7));
}

.image-overlay {
    position: absolute;
    left: 24px;
    bottom: 20px;
    right: 24px;
    color: white;
    z-index: 2;
}

.image-overlay h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.image-overlay p {
    font-size: 14px;
    color: rgba(255,255,255,0.92);
}

.login-feature-list {
    max-width: 520px;
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.login-feature-list div {
    height: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 999px;
    border: 1px solid #d7ebf0;
    background: rgba(255,255,255,0.82);
    padding: 0 16px;
    color: var(--navy);
    font-size: 14px;
    font-weight: 700;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.dot.blue {
    background: var(--blue);
}

.dot.teal {
    background: var(--teal);
}

.dot.green {
    background: var(--green);
}

.login-card-wrapper {
    position: relative;
}

.circle-bg {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(8, 117, 165, 0.06);
    position: absolute;
    top: -35px;
    right: -60px;
}

.login-card {
    position: relative;
    z-index: 2;
    max-width: 430px;
    background: white;
    border: 1px solid #dceff3;
    border-radius: 22px;
    padding: 38px;
    box-shadow: var(--shadow);
}

.login-card h2 {
    font-size: 28px;
    line-height: 1.1;
    margin-bottom: 10px;
}

.login-card > p {
    color: var(--text-soft);
    font-size: 15px;
    margin-bottom: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}

.input-box {
    height: 54px;
    border: 1px solid #b8d9e7;
    border-radius: 14px;
    background: #f8fcfd;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
}

.input-box span {
    color: var(--blue);
    font-size: 17px;
}

.input-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 15px;
    color: var(--navy);
}

.input-box input::placeholder {
    color: #8ca1b3;
}

.form-row {
    margin: 8px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    font-size: 14px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-soft);
    font-weight: 700;
}

.small-link {
    color: var(--blue);
    font-weight: 800;
}

.access-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: white;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(8, 117, 165, 0.16);
}

.access-btn:hover {
    transform: translateY(-1px);
}

.register-clinic-box {
    margin-top: 18px;
    padding: 15px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(8, 117, 165, 0.08), rgba(39, 182, 176, 0.08));
    border: 1px solid rgba(8, 117, 165, 0.14);
    text-align: center;
}

.register-clinic-box p {
    margin: 0 0 5px;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
}

.register-clinic-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--blue);
    font-size: 15px;
    font-weight: 900;
}

.register-clinic-link span {
    transition: transform 0.2s ease;
}

.register-clinic-link:hover {
    color: var(--teal);
}

.register-clinic-link:hover span {
    transform: translateX(4px);
}

.login-divider {
    height: 1px;
    background: #e3edf1;
    margin: 24px 0 18px;
}

.login-help {
    text-align: center;
    display: grid;
    gap: 8px;
}

.login-help p {
    color: var(--text-soft);
    font-size: 13px;
}

.login-help a {
    color: var(--blue);
    font-weight: 900;
}

.secure-note {
    margin-top: 24px;
    text-align: center;
    color: var(--text-soft);
    font-size: 14px;
}

/* Tablet */
@media (max-width: 1050px) {
    .login-page {
        padding: 24px;
    }

    .login-logo {
        margin-left: 0;
    }

    .login-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .login-card {
        max-width: 100%;
    }

    .login-image-card {
        max-width: 100%;
    }
}

/* Phone */
@media (max-width: 640px) {
    .login-page {
        padding: 18px;
    }

    .back-home {
        font-size: 13px;
        padding: 9px 16px;
    }

    .login-logo {
        margin: 18px 0 28px;
    }

    .login-info h1 {
        font-size: 36px;
    }

    .login-subtitle {
        font-size: 17px;
    }

    .login-card {
        padding: 26px;
    }

    .form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .circle-bg {
        display: none;
    }
}
/* REGISTER CLINIC PAGE */
.register-page {
    min-height: 100vh;
    padding: 28px 64px 44px;
    background:
        radial-gradient(circle at 82% 24%, rgba(8, 117, 165, 0.08), transparent 18%),
        linear-gradient(135deg, #ffffff 0%, #f2fffd 100%);
}

.register-back {
    margin-bottom: 28px;
}

.register-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 42px;
}

.register-header img {
    width: 140px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 18px;
}

.register-header h1 {
    font-size: clamp(34px, 3.4vw, 48px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 14px;
}

.register-header p {
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.55;
}

.register-form {
    max-width: 1180px;
    margin: 0 auto;
}

.register-section {
    background: white;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: 0 14px 34px rgba(11, 43, 69, 0.08);
}

.register-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    margin-bottom: 24px;
}

.register-section h2 span {
    color: var(--blue);
}

.register-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.register-plan-card {
    position: relative;
    display: block;
    border: 1px solid #bcdbea;
    border-radius: 16px;
    padding: 26px 22px;
    cursor: pointer;
    text-align: center;
    transition: 0.2s ease;
    background: white;
}

.register-plan-card input {
    display: none;
}

.register-plan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(11, 43, 69, 0.08);
}

.register-plan-card.selected {
    border: 2px solid var(--blue);
    box-shadow: 0 18px 36px rgba(8, 117, 165, 0.12);
}

.most-popular {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--green), var(--teal));
    color: white;
    border-radius: 999px;
    padding: 4px 18px;
    font-size: 11px;
    font-weight: 900;
}

.selected-check {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: white;
    font-weight: 900;
    font-size: 13px;
}

.plan-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    color: white;
    font-size: 26px;
    font-weight: 900;
}

.plan-icon.green {
    background: linear-gradient(135deg, #62c47b, var(--green));
}

.plan-icon.blue {
    background: linear-gradient(135deg, var(--blue), var(--teal));
}

.plan-icon.dark {
    background: linear-gradient(135deg, #075f89, var(--blue));
}

.register-plan-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
}

.register-plan-card h4 {
    font-size: 36px;
    color: var(--blue);
    line-height: 1.1;
    margin-bottom: 16px;
}

.register-plan-card h4 span {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
}

.register-plan-card ul {
    list-style: none;
    text-align: left;
    display: grid;
    gap: 9px;
    color: var(--text-soft);
    font-size: 14px;
}

.form-grid {
    display: grid;
    gap: 20px;
}

.form-grid.one {
    grid-template-columns: 1fr;
}

.form-grid.two {
    grid-template-columns: repeat(2, 1fr);
}

.register-section .form-group {
    margin-bottom: 0;
}

.register-section .form-group small {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 12px;
}

.register-section input,
.register-section select,
.register-section textarea {
    width: 100%;
    min-height: 54px;
    border: 1px solid #b8d9e7;
    border-radius: 14px;
    background: #f8fcfd;
    padding: 0 16px;
    outline: none;
    color: var(--navy);
    font-size: 15px;
}

.register-section textarea {
    min-height: 120px;
    resize: vertical;
    padding: 16px;
}

.register-section input::placeholder,
.register-section textarea::placeholder {
    color: #8ca1b3;
}

.register-note {
    margin-top: 24px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #effdfb;
    border: 1px solid #bde8e7;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.register-note strong {
    color: var(--blue);
}

.register-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 10px;
}

.secondary-btn {
    min-width: 150px;
    height: 50px;
    border-radius: 14px;
    border: 1px solid #b8d9e7;
    background: white;
    color: var(--text-soft);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-register-btn {
    min-width: 300px;
    height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: white;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(8, 117, 165, 0.16);
}

.terms-text {
    text-align: center;
    color: var(--text-soft);
    font-size: 13px;
    margin-top: 28px;
}

.terms-text a {
    color: var(--blue);
    font-weight: 900;
}

/* Register responsive */
@media (max-width: 1000px) {
    .register-page {
        padding: 24px;
    }

    .register-plans {
        grid-template-columns: 1fr;
    }

    .form-grid.two {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .register-page {
        padding: 18px;
    }

    .register-section {
        padding: 22px;
    }

    .register-actions {
        flex-direction: column;
    }

    .secondary-btn,
    .submit-register-btn {
        width: 100%;
        min-width: unset;
    }
}
.messages-wrapper {
    max-width: 1180px;
    margin: 0 auto 22px;
}

.message-alert {
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
}

.message-alert.success {
    color: #0b6b45;
    background: #e9fff5;
    border: 1px solid #b8f0d3;
}

.message-alert.error {
    color: #9b1c1c;
    background: #fff0f0;
    border: 1px solid #ffc4c4;
}
.password-box {
    position: relative;
}

.password-box input {
    padding-right: 48px;
}

.password-toggle {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--blue);
    font-size: 16px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    transition: 0.2s ease;
}

.password-toggle:hover {
    background: rgba(8, 117, 165, 0.08);
}
.auth-message-list {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.auth-message {
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    text-align: left;
}

.auth-message.error {
    background: #ffe0e0;
    color: #c40000;
    border: 1px solid #f5abab;
}

.auth-message.success {
    background: #dcf7e7;
    color: #008a43;
    border: 1px solid #9be3b4;
}

.password-rules {
    margin-top: -8px;
    margin-bottom: 12px;
    color: #63819c;
    font-size: 12px;
    text-align: left;
}

.forgot-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.security-note-auth {
    margin-top: 14px;
    color: #63819c;
    text-align: center;
    font-size: 12px;
}

.forgot-modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgba(5, 35, 55, 0.62);
    z-index: 9999;
}

.forgot-modal-overlay.show {
    display: grid;
}

.forgot-modal {
    width: min(440px, 100%);
    position: relative;
    background: #f8fcfd;
    color: #0b2b45;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.forgot-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: transparent;
    color: #0b2b45;
    font-size: 26px;
    cursor: pointer;
}

.forgot-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #08608d, #28b6b0);
    color: white;
    font-size: 22px;
}

.forgot-modal h2 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
}

.forgot-modal p {
    color: #63819c;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 22px;
}

.forgot-step {
    display: none;
}

.forgot-step.active {
    display: block;
}

.forgot-secondary-btn {
    width: 100%;
    margin-top: 12px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid #cce0e8;
    background: white;
    color: #08608d;
    font-weight: 900;
    cursor: pointer;
}

.forgot-status {
    display: none;
    margin-top: 16px;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
}

.forgot-status.show {
    display: block;
}

.forgot-status.success {
    background: #dcf7e7;
    color: #008a43;
    border: 1px solid #9be3b4;
}

.forgot-status.error {
    background: #ffe0e0;
    color: #c40000;
    border: 1px solid #f5abab;
}
.role-page,
.pin-page {
    min-height: 100vh;
    padding: 54px 24px;
    background:
        radial-gradient(circle at top left, rgba(98, 205, 187, 0.18), transparent 34%),
        radial-gradient(circle at bottom right, rgba(8, 117, 165, 0.08), transparent 32%),
        #f6fcfc;
    color: #0b2b45;
}

.role-logo {
    width: min(980px, 100%);
    margin: 0 auto 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.role-logo img {
    width: 44px;
    height: auto;
}

.role-logo span {
    font-weight: 800;
}

.role-hero {
    text-align: center;
    margin-bottom: 46px;
}

.role-clinic-name {
    color: #0875a5;
    font-weight: 900;
    margin-bottom: 12px;
}

.role-hero h1 {
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 12px;
    font-weight: 900;
}

.role-hero p {
    color: #51718d;
    font-size: 17px;
}

.role-message-wrap {
    width: min(760px, 100%);
    margin: 0 auto 22px;
}

.role-grid {
    width: min(980px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.role-card {
    min-height: 250px;
    padding: 32px;
    border: 1px solid #cfe5ec;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    color: #0b2b45;
    text-decoration: none;
    box-shadow: 0 16px 32px rgba(11, 43, 69, 0.04);
    transition: 0.22s ease;
}

.role-card.active-role:hover {
    transform: translateY(-5px);
    border-color: #26aaa5;
    box-shadow: 0 24px 46px rgba(11, 43, 69, 0.12);
}

.role-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    color: white;
    font-size: 34px;
    box-shadow: 0 12px 22px rgba(11, 43, 69, 0.14);
}

.role-icon.shield {
    background: linear-gradient(135deg, #0875a5, #26aaa5);
}

.role-icon.pulse {
    background: linear-gradient(135deg, #62cdbb, #87c83d);
}

.role-icon.user {
    background: linear-gradient(135deg, #87c83d, #62cdbb);
}

.role-card h2 {
    font-size: 21px;
    margin-bottom: 12px;
    font-weight: 900;
}

.role-card p {
    color: #4e6f89;
    line-height: 1.55;
    margin-bottom: 22px;
}

.role-card strong {
    color: #006b9b;
    font-size: 14px;
}

.role-card small {
    display: block;
    color: #7890a5;
    margin-top: 9px;
    line-height: 1.4;
}

.disabled-role {
    opacity: 0.62;
    cursor: not-allowed;
}

.pin-page {
    display: grid;
    place-items: center;
}

.pin-card {
    width: min(460px, 100%);
    background: white;
    border: 1px solid #dcecf1;
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 22px 60px rgba(11, 43, 69, 0.12);
    text-align: center;
}

.pin-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #0875a5, #26aaa5);
    color: white;
    font-size: 26px;
}

.pin-card h1 {
    font-size: 28px;
    font-weight: 900;
    margin-bottom: 10px;
}

.pin-card > p {
    color: #60758b;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .role-grid {
        grid-template-columns: 1fr;
    }

    .role-card {
        min-height: auto;
    }
}
.one-role-grid {
    width: min(360px, 100%);
    grid-template-columns: 1fr;
}

.single-role-page .role-hero {
    margin-bottom: 34px;
}

.pin-forgot-btn {
    margin-top: 16px;
    border: none;
    background: transparent;
    color: #0875a5;
    font-weight: 900;
    cursor: pointer;
}

.pin-forgot-btn:hover {
    text-decoration: underline;
}
/* ============================= */
/* Role Selector V2 */
/* ============================= */

.pro-role-page {
    min-height: 100vh;
    padding: 32px;
    position: relative;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(17, 188, 205, 0.18), transparent 32%),
        radial-gradient(circle at bottom right, rgba(93, 76, 255, 0.13), transparent 34%),
        linear-gradient(135deg, #f3fffd 0%, #f8fcff 55%, #edf9ff 100%);
}

.pro-back-btn {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0, 147, 176, 0.18);
    color: #007fa1;
    font-weight: 900;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 14px 34px rgba(6, 79, 105, 0.12);
}

.role-shell {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 46px 48px 38px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(0, 137, 165, 0.14);
    box-shadow: 0 26px 80px rgba(7, 69, 96, 0.10);
    backdrop-filter: blur(20px);
}

.role-top {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 18px;
}

.pro-role-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.pro-role-logo img {
    width: 200px;
    height: 100px;
    object-fit: contain;
}

.pro-role-logo span {
    font-size: 20px;
    font-weight: 950;
    color: #08243f;
}

.pro-role-hero {
    text-align: center;
    margin-bottom: 34px;
}

.role-eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(0, 158, 188, 0.10);
    color: #0086a8;
    font-weight: 950;
    font-size: 13px;
    margin-bottom: 12px;
}

.role-clinic-pill {
    width: fit-content;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0, 137, 165, 0.16);
    color: #486983;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(6, 79, 105, 0.08);
}

.pro-role-hero h1 {
    margin: 0;
    color: #08243f;
    font-size: 46px;
    line-height: 1.05;
    letter-spacing: -1.6px;
    font-weight: 950;
}

.pro-role-hero p {
    margin: 14px auto 0;
    max-width: 620px;
    color: #57718c;
    font-size: 16px;
    line-height: 1.6;
}

.pro-role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.pro-role-card {
    min-height: 260px;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    border: 1px solid rgba(0, 137, 165, 0.15);
    box-shadow: 0 18px 46px rgba(6, 79, 105, 0.08);
    color: #08243f;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: 0.22s ease;
}

.pro-role-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 166, 200, 0.45);
    box-shadow: 0 26px 70px rgba(6, 79, 105, 0.16);
}

.pro-role-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 6px;
    background: linear-gradient(90deg, #009db8, #22d2b1);
}

.pro-role-card.admin-card::before {
    background: linear-gradient(90deg, #008fa8, #18c5b2);
}

.pro-role-card.role-physiotherapist::before {
    background: linear-gradient(90deg, #6656f0, #2cc7d3);
}

.pro-role-card.role-receptionist::before {
    background: linear-gradient(90deg, #f0a11a, #20c5b3);
}

.role-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 26px;
}

.pro-role-card .role-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    font-size: 26px;
    box-shadow: 0 18px 34px rgba(6, 79, 105, 0.13);
}

.pro-role-card .role-icon.shield {
    background: linear-gradient(135deg, #008fa8, #16c4b6);
    color: #ffffff;
}

.pro-role-card .role-icon.physio {
    background: #f1efff;
    color: #6656f0;
}

.pro-role-card .role-icon.reception {
    background: #fff4df;
    color: #e29000;
}

.role-badge {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
}

.role-badge.admin {
    background: #e8f8fb;
    color: #007c99;
}

.role-badge.clinical {
    background: #f0edff;
    color: #6656f0;
}

.role-badge.frontdesk {
    background: #fff3dc;
    color: #d88600;
}

.pro-role-card h2 {
    margin: 0 0 12px;
    color: #08243f;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -0.5px;
}

.pro-role-card p {
    margin: 0;
    color: #57718c;
    font-size: 15px;
    line-height: 1.6;
}

.pro-role-card .staff-name {
    font-size: 16px;
    font-weight: 850;
    color: #4d6984;
}

.role-card-footer {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #007ea2;
}

.role-card-footer strong {
    font-size: 14px;
    font-weight: 950;
}

.role-card-footer i {
    transition: transform 0.2s ease;
}

.pro-role-card:hover .role-card-footer i {
    transform: translateX(5px);
}

.role-security-note {
    margin: 30px auto 0;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(0, 137, 165, 0.14);
    color: #58738d;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(6, 79, 105, 0.07);
}

@media (max-width: 980px) {
    .role-shell {
        padding: 36px 24px;
    }

    .pro-role-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pro-back-btn {
        position: static;
        margin-bottom: 18px;
    }
}

@media (max-width: 650px) {
    .pro-role-page {
        padding: 20px;
    }

    .pro-role-hero h1 {
        font-size: 34px;
    }

    .pro-role-grid {
        grid-template-columns: 1fr;
    }

    .pro-role-card {
        min-height: auto;
    }

    .role-security-note {
        width: 100%;
        border-radius: 18px;
    }
}
/* ============================= */
/* Registration Billing Toggle   */
/* ============================= */

.register-billing-cycle {
    width: fit-content;
    margin: 0 auto 28px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 4px;

    background: #f1f8fa;
    border: 1px solid #d7eaf0;
    border-radius: 14px;
}

.register-billing-cycle label {
    position: relative;
    margin: 0;
    cursor: pointer;
}

/* Override generic register input styles */
.register-billing-cycle input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    min-height: 0;
    pointer-events: none;
}

.register-billing-cycle label > span {
    min-width: 145px;
    height: 48px;
    padding: 0 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    border-radius: 10px;

    color: var(--text-soft);
    font-size: 14px;
    font-weight: 800;

    transition: all 0.2s ease;
}

/* Selected option */
.register-billing-cycle input[type="radio"]:checked + span {
    background: #ffffff;
    color: var(--blue);

    box-shadow:
        0 5px 15px rgba(11, 43, 69, 0.09);

    border: 1px solid rgba(8, 117, 165, 0.15);
}

/* Yearly saving text */
.register-billing-cycle small {
    display: inline-block !important;
    margin: 0 !important;

    color: var(--green) !important;
    font-size: 11px !important;
    font-weight: 900;
}

/* Hover */
.register-billing-cycle label:hover > span {
    color: var(--blue);
}

@media (max-width: 640px) {
    .register-billing-cycle {
        width: 100%;
    }

    .register-billing-cycle label {
        flex: 1;
    }

    .register-billing-cycle label > span {
        min-width: 0;
        width: 100%;
        padding: 0 10px;
        font-size: 13px;
    }

    .register-billing-cycle small {
        font-size: 9px !important;
    }
}