:root {
    --bg: #ffffff;
    --fg: #111111;
    --accent: #000000;
    --muted: #888888;
    --border: #e5e5e5;
    --error: #ff3b30;
    --radius: 4px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.login-container h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
    text-transform: uppercase;
}

#login-form {
    width: 100%;
    max-width: 320px;
}

#login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

#login-form input:focus {
    border-bottom-color: var(--accent);
}

#login-form button {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.2s;
}

#login-form button:hover {
    opacity: 0.8;
}

#error {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--error);
    text-align: center;
}

/* Super Admin workspace selector */

.role-selector-page {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px;
    background:
            radial-gradient(
                    circle at top left,
                    rgba(0, 122, 255, 0.12),
                    transparent 38%
            ),
            linear-gradient(
                    180deg,
                    #f5f9ff 0%,
                    #edf5ff 100%
            );
}

.role-selector {
    width: min(760px, 100%);
    padding: 34px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
            0 24px 70px rgba(30, 64, 175, 0.12),
            0 4px 18px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.role-selector-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
}

.role-selector-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: #111827;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.16);
}

.role-selector-brand > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.role-selector-brand strong {
    color: #111827;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.role-selector-brand span:last-child {
    color: #667085;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-selector-heading {
    max-width: 540px;
    margin-bottom: 28px;
}

.role-selector-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: #007aff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.role-selector-heading h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-transform: none;
}

.role-selector-heading p {
    margin: 14px 0 0;
    color: #667085;
    font-size: 1rem;
    line-height: 1.5;
}

.role-selector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.role-card {
    appearance: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    min-width: 0;
    min-height: 142px;
    padding: 20px;
    border: 1px solid #dfe5ec;
    border-radius: 20px;
    background: #ffffff;
    color: #111827;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition:
            transform 0.15s ease,
            border-color 0.15s ease,
            box-shadow 0.15s ease,
            background 0.15s ease;
}

.role-card:hover {

    border-color: rgba(0, 122, 255, 0.45);
    background: #fbfdff;

}

.role-card:active {
    transform: translateY(0) scale(0.99);
}

.role-card:focus-visible {
    outline: 3px solid rgba(0, 122, 255, 0.22);
    outline-offset: 3px;
}

.role-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.role-card-icon svg {
    width: 26px;
    height: 26px;
}

.role-card-content {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.role-card-content strong {
    color: #111827;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.2;
}

.role-card-content small {
    margin: 0;
    color: #667085;
    font-size: 0.84rem;
    font-weight: 500;
    line-height: 1.45;
}

.role-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    transition:
            color 0.15s ease,
            transform 0.15s ease;
}

.role-card-arrow svg {
    width: 20px;
    height: 20px;
}

.role-card:hover .role-card-arrow {
    color: #007aff;

}

.role-selector-footer {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid #eaecf0;
    color: #98a2b3;
    font-size: 0.78rem;
    font-weight: 600;
    text-align: center;
}

@media (max-width: 680px) {
    .role-selector-page {
        justify-content: flex-start;
        padding: 16px;
    }

    .role-selector {
        margin: auto 0;
        padding: 24px 18px;
        border-radius: 24px;
    }

    .role-selector-brand {
        margin-bottom: 36px;
    }

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

    .role-card {
        min-height: 124px;
        padding: 17px;
        border-radius: 17px;
    }

    .role-selector-heading h1 {
        font-size: 2rem;
    }
}