:root {
    --pb-blue: #1b75bc;
    --pb-blue-dark: #155e98;
    --pb-navy: #1b3a6b;
    --pb-navy-dark: #14305a;
    --pb-gray: #8a8d91;
    --pb-gray-text: #5c6066;
    --ink: #1f2733;
    --line: #e3e8ef;
    --bg: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

/* ---- Two-column split layout (matches index/auth page) ---- */
.layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left: branded image panel with logo overlay */
.panel {
    position: relative;
    margin: 20px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background-image: url('../images/welcome.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    order: 1;
}
.panel::after {
    content: "";
    position: absolute;
    inset: 0;
}
.panel-logo {
    position: relative;
    z-index: 1;
    padding: 4rem;
}
.panel-logo img {
    height: 100px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}

/* Right: choices card */
.pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    order: 2;
}

.card {
    width: 100%;
    max-width: 440px;
}

/* Logo shown above the card only on small screens */
.card-logo { display: none; text-align: center; margin-bottom: 26px; }
.card-logo img { width: 100%; max-width: 260px; height: auto; }

.heading { text-align: center; margin-bottom: 28px; }
.heading h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink);
}
.heading p {
    margin-top: 6px;
    font-size: 14px;
    color: var(--pb-gray-text);
}

.option {
    display: block;
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.option .role {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .08s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* 1. Client — full color (primary blue) */
.group-client {
    background: linear-gradient(180deg, rgba(27, 117, 188, 0.06), rgba(27, 117, 188, 0.02));
    border: 1px solid rgba(27, 117, 188, 0.18);
}
.group-client .role { color: var(--pb-blue-dark); }
.btn-client {
    background: var(--pb-blue);
    color: #fff;
    box-shadow: 0 10px 20px -10px rgba(27, 117, 188, 0.7);
}
.btn-client:hover { background: var(--pb-blue-dark); }

/* 2. Employee — light / whiteish */
.group-employee {
    background: #fbfcfe;
    border: 1px solid var(--line);
}
.group-employee .role { color: var(--pb-navy); }
.btn-employee {
    background: #fff;
    color: var(--pb-navy);
    border: 1px solid #cdd6e4;
    box-shadow: 0 6px 16px -12px rgba(27, 58, 107, 0.5);
}
.btn-employee:hover {
    background: #f4f7fb;
    border-color: var(--pb-navy);
}

/* 3. Worker / applicant — subtle contact */
.group-worker {
    background: #fafafa;
    border: 1px dashed #d7dbe2;
}
.group-worker .role { color: var(--pb-gray-text); }
.btn-worker {
    background: transparent;
    color: var(--pb-gray-text);
    border: 1px solid #d0d4da;
}
.btn-worker:hover {
    background: #fff;
    color: var(--ink);
    border-color: var(--pb-gray);
}

.footer {
    margin-top: 26px;
    text-align: center;
    font-size: 12px;
    color: #9aa0a8;
    line-height: 1.6;
}
.footer a { color: var(--pb-blue); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ---- Mobile: single column, card-only ---- */
@media (max-width: 991px) {
    .layout { grid-template-columns: 1fr; }
    .panel { display: none; }
    .pane { padding: 36px 22px; min-height: 100vh; }
    .card-logo { display: block; }
}
