:root {
    --portal-primary: #0f766e;
    --portal-text: #134e4a;
    --portal-muted: #5b6b6a;
    --portal-bg: #f3f7f6;
    --portal-card: #ffffff;
    --portal-border: #d7e3e1;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    background: var(--portal-bg);
    color: var(--portal-text);
}

.portal-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.portal-header,
.portal-footer {
    padding: 1.25rem 1.5rem;
}

.portal-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--portal-card);
    border-bottom: 1px solid var(--portal-border);
}

.portal-logo,
.portal-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    object-fit: contain;
}

.portal-mark {
    display: grid;
    place-items: center;
    background: var(--portal-primary);
    color: #fff;
    font-weight: 700;
}

.portal-brand {
    font-weight: 700;
    font-size: 1.1rem;
}

.portal-main {
    width: min(44rem, calc(100% - 2rem));
    margin: 2rem auto 3rem;
    flex: 1;
}

.portal-card {
    background: var(--portal-card);
    border: 1px solid var(--portal-border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 12px 40px rgba(15, 118, 110, 0.06);
}

.portal-card h1,
.portal-card h2 {
    margin: 0 0 0.5rem;
    font-size: 1.7rem;
}

.portal-card h2 {
    font-size: 1.35rem;
}

.portal-card-follow {
    margin-top: 1.25rem;
}

.portal-lead,
.portal-help,
.portal-footer {
    color: var(--portal-muted);
}

.portal-grid {
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0 0;
}

@media (min-width: 720px) {
    .portal-grid { grid-template-columns: repeat(3, 1fr); }
}

.portal-feature {
    display: block;
    border: 1px solid var(--portal-border);
    border-radius: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    background: #f8fbfb;
}

.portal-feature.is-disabled,
.portal-feature.is-unavailable {
    opacity: 0.92;
}

.portal-feature strong {
    display: block;
    margin-bottom: 0.35rem;
}

.portal-feature-copy {
    display: block;
    margin-bottom: 0.65rem;
    color: var(--portal-text);
    font-size: 0.95rem;
    line-height: 1.4;
}

.portal-feature small {
    display: inline-block;
    color: var(--portal-muted);
    background: #eef4f3;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.portal-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

.portal-form label {
    display: grid;
    gap: 0.4rem;
    font-weight: 600;
}

.portal-form input {
    width: 100%;
    border: 1px solid var(--portal-border);
    border-radius: 0.75rem;
    padding: 0.8rem 0.9rem;
    font-size: 1rem;
}

.portal-form input:focus {
    outline: 2px solid var(--portal-primary);
}

.portal-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.portal-status,
.portal-error {
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.portal-status { background: #ecfdf5; }
.portal-error { background: #fef2f2; color: #991b1b; }

.portal-button {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    background: var(--portal-primary);
    color: #fff;
    font-weight: 700;
    padding: 0.85rem 1.2rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.portal-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.portal-actions a:not(.portal-button),
.portal-link {
    color: var(--portal-primary);
}

.portal-actions a.portal-button,
a.portal-button {
    color: #fff;
}

.portal-items {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.portal-items li {
    padding: 0.85rem 0;
    border-top: 1px solid var(--portal-border);
}

.portal-items small {
    color: var(--portal-muted);
}
