:root {
    --navy: #0c2b3e;
    --navy-light: #16465f;
    --blue: #24aee0;
    --blue-soft: #e6f7fc;
    --ink: #172733;
    --muted: #647681;
    --line: #dbe6ea;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

.access-page {
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 4%, rgba(36, 174, 224, 0.2), transparent 28rem),
        linear-gradient(145deg, #f4f8f9 0%, #edf4f6 52%, #f8fafb 100%);
    color: var(--ink);
    font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
}

.access-header {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.access-header img {
    width: 152px;
    height: auto;
}

.back-link {
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: #087fab;
}

.access-main {
    width: min(940px, calc(100% - 48px));
    margin: 5vh auto 0;
    padding-bottom: 56px;
}

.access-intro {
    max-width: 680px;
    margin: 0 auto 42px;
    text-align: center;
}

.access-eyebrow {
    margin: 0 0 12px;
    color: #078bb9;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.access-intro h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(2.3rem, 6vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.access-intro > p:last-child {
    margin: 20px auto 0;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.65;
}

.profile-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.profile-card {
    min-height: 265px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 55px rgba(12, 43, 62, 0.08);
    color: var(--ink);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    border-color: rgba(36, 174, 224, 0.55);
    box-shadow: 0 26px 68px rgba(12, 43, 62, 0.14);
}

.profile-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--blue-soft);
    color: #087fa9;
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.profile-card-admin .profile-icon {
    background: var(--navy);
    color: #fff;
}

.profile-copy {
    margin-top: auto;
    display: flex;
    flex-direction: column;
}

.profile-copy small {
    margin-bottom: 8px;
    color: #178fb8;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.profile-copy strong {
    color: var(--navy);
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}

.profile-copy > span {
    max-width: 310px;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.profile-arrow {
    position: absolute;
    right: 28px;
    bottom: 28px;
    color: var(--blue);
    font-size: 1.45rem;
}

.access-help {
    margin: 28px 0 0;
    color: #7b8b94;
    font-size: 0.7rem;
    text-align: center;
}

@media (max-width: 720px) {
    .access-header,
    .access-main {
        width: min(100% - 28px, 560px);
    }

    .access-main {
        margin-top: 2vh;
    }

    .profile-options {
        grid-template-columns: 1fr;
    }

    .profile-card {
        min-height: 230px;
    }
}

/* Unified login */

.unified-access-main {
    width: min(1040px, calc(100% - 48px));
    margin: 4vh auto 0;
    padding-bottom: 60px;
}

.unified-access-shell {
    min-height: 600px;
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(410px, 1.05fr);
    overflow: hidden;
    border: 1px solid rgba(12, 43, 62, 0.1);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(12, 43, 62, 0.14);
}

.unified-access-brand {
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 95% 8%, rgba(36, 174, 224, 0.3), transparent 32%),
        linear-gradient(150deg, var(--navy-light), var(--navy));
    color: #fff;
}

.unified-access-brand .access-eyebrow {
    color: #72d4f1;
}

.unified-access-brand h1 {
    max-width: 420px;
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.01;
    letter-spacing: -0.055em;
}

.unified-access-brand div > p:last-child {
    max-width: 390px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.82rem;
    line-height: 1.65;
}

.access-security-note {
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
}

.access-security-note span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5dd1a5;
    box-shadow: 0 0 0 4px rgba(93, 209, 165, 0.11);
}

.unified-access-form {
    padding: clamp(42px, 7vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.unified-access-form h2 {
    margin: 0;
    color: var(--navy);
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.access-form-intro {
    margin: 11px 0 28px;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

.access-field {
    margin-bottom: 17px;
    display: block;
}

.access-field span {
    margin-bottom: 7px;
    display: block;
    color: #344852;
    font-size: 0.72rem;
    font-weight: 750;
}

.access-field input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fbfcfc;
    color: var(--ink);
    font: inherit;
    font-size: 0.84rem;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.access-field input:focus {
    outline: 0;
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(36, 174, 224, 0.14);
}

.access-primary-button {
    width: 100%;
    min-height: 51px;
    margin-top: 3px;
    border: 0;
    border-radius: 11px;
    background: var(--navy);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 800;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.access-primary-button:hover {
    background: var(--navy-light);
    box-shadow: 0 10px 24px rgba(12, 43, 62, 0.18);
    transform: translateY(-1px);
}

.access-primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.access-notice {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.72rem;
    line-height: 1.45;
}

.access-notice-info {
    border: 1px solid #c9e9f4;
    background: var(--blue-soft);
    color: #0d6d8e;
}

.access-notice-error {
    border: 1px solid #efcbd0;
    background: #fdebed;
    color: #a83a48;
}

.activation-callout {
    margin-top: 24px;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.68rem;
    text-align: center;
}

.activation-callout a {
    color: #087fa9;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
}

.activation-callout a + a {
    margin-top: 5px;
}

.recovery-shell {
    min-height: 550px;
}

.preview-reset-link {
    margin-bottom: 18px;
    padding: 13px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px dashed #9fd6e8;
    border-radius: 10px;
    background: #f2fbfe;
}

.preview-reset-link span {
    color: var(--muted);
    font-size: 0.64rem;
}

.preview-reset-link a {
    color: #087fa9;
    font-size: 0.72rem;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 760px) {
    .unified-access-main {
        width: min(100% - 28px, 560px);
        margin-top: 1vh;
    }

    .unified-access-shell {
        min-height: 0;
        grid-template-columns: 1fr;
    }

    .unified-access-brand {
        min-height: 245px;
        padding: 32px;
    }

    .unified-access-brand h1 {
        font-size: 2.2rem;
    }

    .unified-access-brand div > p:last-child,
    .access-security-note {
        display: none;
    }

    .unified-access-form {
        padding: 38px 29px 42px;
    }
}
