* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(
            circle at top,
            #eef6ff 0,
            #f5f7fa 45%,
            #eef1f5 100%
        );
    color: #1f2937;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 18px;
}

.auth-shell {
    width: 100%;
    max-width: 520px;
}

.auth-brand {
    text-align: center;
    margin-bottom: 22px;
}

.auth-logo {
    display: block;
    width: 110px;
    max-height: 110px;
    object-fit: contain;
    margin: 0 auto 18px auto;
}

.auth-org {
    margin: 0 auto;
    max-width: 470px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
    color: #1f2937;
}

.auth-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(203, 213, 225, 0.75);
    border-radius: 20px;
    padding: 30px;
    box-shadow:
        0 18px 50px rgba(15, 23, 42, 0.10),
        0 3px 12px rgba(15, 23, 42, 0.05);
}

.auth-title {
    margin: 0;
    text-align: center;
    font-size: 28px;
    line-height: 1.2;
}

.auth-subtitle {
    margin: 8px 0 24px 0;
    text-align: center;
    font-size: 15px;
    color: #64748b;
}

.auth-form {
    display: grid;
    gap: 15px;
}

.auth-field {
    display: grid;
    gap: 7px;
}

.auth-field label {
    font-size: 14px;
    font-weight: 700;
    color: #374151;
}

.auth-field input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 11px;
    padding: 13px 14px;
    background: #fff;
    color: #111827;
    font-size: 16px;
    outline: none;
    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.auth-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-submit {
    width: 100%;
    border: 0;
    border-radius: 11px;
    padding: 13px 18px;
    margin-top: 3px;
    background: #1d4ed8;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background .15s ease,
        transform .05s ease;
}

.auth-submit:hover {
    background: #1e40af;
}

.auth-submit:active {
    transform: translateY(1px);
}

.auth-error {
    margin-bottom: 16px;
    padding: 11px 13px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #991b1b;
    font-size: 14px;
    font-weight: 600;
}

.auth-note {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 600px) {
    .auth-page {
        align-items: flex-start;
        padding: 22px 12px;
    }

    .auth-logo {
        width: 92px;
        max-height: 92px;
        margin-bottom: 14px;
    }

    .auth-org {
        font-size: 16px;
    }

    .auth-card {
        padding: 22px 17px;
        border-radius: 16px;
    }

    .auth-title {
        font-size: 24px;
    }
}

/* ============================================================
   STAFF PORTAL HOME
   ============================================================ */

.portal-shell {
    max-width: 650px;
}

.portal-card {
    padding: 30px;
}

.portal-subtitle {
    margin-bottom: 25px;
}

.portal-links {
    display: grid;
    gap: 12px;
}

.portal-link {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 14px;

    padding: 16px 17px;

    border: 1px solid #dbe3ee;
    border-radius: 14px;

    background: #f8fafc;

    color: #1f2937;
    text-decoration: none;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .08s ease,
        box-shadow .15s ease;
}

.portal-link:hover {
    border-color: #93b4f4;
    background: #f1f6ff;
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.portal-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 12px;
    background: #eaf2ff;

    font-size: 23px;
}

.portal-link-content {
    display: grid;
    gap: 4px;
}

.portal-link-content strong {
    font-size: 17px;
    line-height: 1.2;
}

.portal-link-content span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
}

.portal-arrow {
    color: #2563eb;
    font-size: 23px;
    font-weight: 700;
}

.portal-note {
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
}

@media (max-width: 600px) {
    .portal-card {
        padding: 21px 16px;
    }

    .portal-link {
        grid-template-columns: 42px 1fr auto;
        gap: 10px;
        padding: 14px 12px;
    }

    .portal-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .portal-link-content strong {
        font-size: 15px;
    }

    .portal-link-content span {
        font-size: 12px;
    }
}

.auth-back {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.auth-back:hover {
    text-decoration: underline;
}
