:root {
    /* Shared with style.css so this page matches the site's red-gradient theme */
    --gh-bg: #07080d;
    --gh-bg-soft: #101219;
    --gh-card: #151821;
    --gh-card-light: #1d2230;

    --gh-red: #ff003c;
    --gh-red-soft: #ff335f;
    --gh-red-dark: #9b001f;
    --gh-red-deep: #3b000c;

    --gh-text: #ffffff;
    --gh-text-soft: #d8dce7;
    --gh-muted: #9ca3af;

    --gh-border: rgba(255, 255, 255, 0.08);
    --gh-border-red: rgba(255, 0, 60, 0.35);

    --gh-gradient-red: linear-gradient(135deg, #ff003c 0%, #c4002f 42%, #7a001d 78%, #260007 100%);
    --mameada-nav-background:
            radial-gradient(circle at 8% -80%, rgba(89, 18, 42, 0.18) 0%, rgba(89, 18, 42, 0) 52%),
            linear-gradient(105deg, #170e11 0%, #0f0c0e 50%, #140a0e 100%);
    --gh-gradient-sidebar: linear-gradient(180deg, #3b000c 0%, #180008 42%, #090a0f 100%);

    --gh-radius: 18px;
    --gh-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    --gh-red-shadow: 0 12px 35px rgba(255, 0, 60, 0.26);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    min-height: 100vh;
    background: var(--gh-bg);
    color: var(--gh-text);
    display: flex;
    flex-direction: column;
}

.auth-experience .ghp-topbar {
    flex: 0 0 72px;
    width: 100%;
    min-height: 72px;
}

.auth-experience .page {
    min-height: calc(100vh - 72px);
}

a {
    text-decoration: none;
    color: inherit;
}

.header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: var(--mameada-nav-background);
    border-bottom: 1px solid var(--gh-border-red);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.48), inset 0 -1px 0 rgba(255, 255, 255, 0.025);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-btn {
    font-size: 24px;
    cursor: pointer;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--gh-text);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-btn {
    padding: 9px 16px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
    color: var(--gh-text);
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s ease;
}

.top-btn:hover {
    background: rgba(255, 255, 255, 0.24);
    color: var(--gh-text);
}

.top-btn.active {
    background: var(--gh-text);
    color: var(--gh-red-dark);
    border-color: var(--gh-text);
    font-weight: bold;
}

.page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background:
            radial-gradient(circle at top left, rgba(255, 0, 60, 0.12), transparent 28%),
            radial-gradient(circle at bottom right, rgba(196, 0, 47, 0.14), transparent 30%),
            var(--gh-bg);
}

.signup-wrapper {
    width: 100%;
    max-width: 1150px;
    display: grid;
    grid-template-columns: 1fr 460px;
    gap: 40px;
    /* Keep the account introduction beside the top of the taller form card. */
    align-items: start;
}

.signup-intro h1 {
    font-size: 46px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.signup-intro h1 span {
    color: var(--gh-red-soft);
}

.signup-intro p {
    color: var(--gh-text-soft);
    font-size: 17px;
    line-height: 1.7;
    max-width: 580px;
    margin-bottom: 28px;
}

.benefit-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 16px;
    max-width: 640px;
}

.benefit-box {
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    border-radius: var(--gh-radius);
    padding: 18px;
}

.benefit-box h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.benefit-box p {
    font-size: 13px;
    color: var(--gh-muted);
    line-height: 1.6;
}

.signup-card {
    background: var(--gh-card);
    border: 1px solid var(--gh-border);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: var(--gh-shadow);
}

.signup-card h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.signup-card .subtext {
    color: var(--gh-muted);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--gh-text-soft);
}

.form-group input,
.form-group select {
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    background: var(--gh-bg-soft);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: var(--gh-text);
    font-size: 14px;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--gh-red);
    box-shadow: 0 0 0 3px rgba(255, 0, 60, 0.2);
}

.form-group select:disabled {
    color: #737987;
    cursor: not-allowed;
    opacity: 0.78;
}

.origin-location {
    min-width: 0;
    margin: 4px 0 18px;
    padding: 18px;
    border: 1px solid rgba(255, 49, 95, 0.2);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(58, 4, 22, 0.36), rgba(7, 8, 13, 0.62));
}

.origin-location__heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-width: calc(100% - 20px);
    padding: 0 8px;
    margin-bottom: 12px;
}

.origin-location__heading span {
    color: var(--gh-text);
    font-size: 16px;
    font-weight: 800;
}

.origin-location__heading small {
    color: var(--gh-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.origin-location__catalogue-status {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 20px;
    margin: 0 0 14px;
    color: var(--gh-muted);
    font-size: 12px;
    line-height: 1.5;
}

.origin-location__catalogue-status::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #8b91a0;
    content: "";
    flex: 0 0 auto;
}

.origin-location__catalogue-status.is-loading::before {
    border: 2px solid rgba(255, 255, 255, 0.26);
    border-top-color: var(--gh-red-soft);
    background: transparent;
    animation: origin-location-spin 0.8s linear infinite;
}

.origin-location__catalogue-status.is-success { color: #b7f5c8; }
.origin-location__catalogue-status.is-success::before { background: #58d582; }
.origin-location__catalogue-status.is-error { color: #ffd0d8; }
.origin-location__catalogue-status.is-error::before { background: #ff6680; }

.origin-location__catalogue-status[hidden],
.origin-location__progress[hidden],
.origin-location__status[hidden],
.origin-location__attribution[hidden] {
    display: none;
}

.origin-location__optional {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px 14px;
    align-items: center;
    margin: 14px 0 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(5, 6, 10, 0.48);
}

.origin-location__detect {
    flex: 0 0 auto;
    padding: 10px 13px;
    border: 1px solid rgba(255, 49, 95, 0.48);
    border-radius: 12px;
    background: rgba(255, 49, 95, 0.12);
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    justify-self: start;
}

.origin-location__detect:hover:not(:disabled) {
    background: rgba(255, 49, 95, 0.22);
}

.origin-location__detect:disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

.origin-location__detect.is-busy:disabled { cursor: wait; }

.origin-location__button-spinner {
    display: none;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: origin-location-spin 0.8s linear infinite;
}

.origin-location__detect.is-busy .origin-location__button-spinner { display: inline-block; }

.origin-location__progress {
    grid-column: 1 / -1;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.origin-location__progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--gh-gradient-red);
    transition: width 0.25s ease;
}

[data-phase="checking"] .origin-location__progress span { width: 12%; }
[data-phase="permission"] .origin-location__progress span { width: 28%; }
[data-phase="locating"] .origin-location__progress span { width: 52%; }
[data-phase="resolving"] .origin-location__progress span { width: 76%; }
[data-phase="applying"] .origin-location__progress span { width: 92%; }
[data-phase="success"] .origin-location__progress span { width: 100%; background: #58d582; }
[data-phase="error"] .origin-location__progress span,
[data-phase="unavailable"] .origin-location__progress span { width: 100%; background: #ff6680; }
[data-phase="warning"] .origin-location__progress span { width: 100%; background: #f1b85b; }

.origin-location__status {
    grid-column: 1 / -1;
    min-height: 18px;
    margin: 0;
    color: var(--gh-muted);
    font-size: 12px;
    line-height: 1.5;
}

[data-phase="success"] .origin-location__status { color: #b7f5c8; }
[data-phase="error"] .origin-location__status,
[data-phase="unavailable"] .origin-location__status { color: #ffd0d8; }
[data-phase="warning"] .origin-location__status { color: #ffe0a4; }

@keyframes origin-location-spin { to { transform: rotate(360deg); } }

.origin-location__other[hidden] {
    display: none;
}

.origin-location__attribution {
    display: block;
    grid-column: 1 / -1;
    margin: 0;
    color: var(--gh-muted);
    font-size: 11px;
    line-height: 1.55;
}

.origin-location__privacy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: var(--gh-muted);
    font-size: 11px;
    line-height: 1.55;
}

.origin-location__privacy i {
    margin-top: 2px;
    color: var(--gh-red-soft);
}

.google-maps-attribution {
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
    white-space: nowrap;
}

.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--gh-text-soft);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.terms a {
    color: var(--gh-red-soft);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    background: var(--gh-gradient-red);
    color: var(--gh-text);
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    margin-bottom: 18px;
}

.submit-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gh-muted);
    font-size: 13px;
    margin: 18px 0;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--gh-border);
}

.social-btn {
    width: 100%;
    padding: 13px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--gh-bg-soft);
    color: var(--gh-text);
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 12px;
    transition: 0.3s ease;
}

.social-btn:hover {
    background: var(--gh-card-light);
    border-color: var(--gh-border-red);
}

.login-text {
    margin-top: 12px;
    text-align: center;
    color: var(--gh-muted);
    font-size: 14px;
}

.login-text a {
    color: var(--gh-red-soft);
    font-weight: bold;
}

@media (max-width: 940px) {
    .signup-wrapper {
        grid-template-columns: 1fr;
    }

    .signup-intro {
        text-align: center;
    }

    .signup-intro p {
        margin-left: auto;
        margin-right: auto;
    }

    .benefit-list {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .header {
        padding: 0 14px;
    }

    .logo {
        font-size: 20px;
    }

    .top-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .page {
        padding: 24px 14px;
    }

    .signup-card {
        padding: 24px 18px;
    }

    .signup-intro h1 {
        font-size: 34px;
    }

    .benefit-list,
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .origin-location__optional {
        grid-template-columns: 1fr;
    }

    .origin-location__detect {
        width: 100%;
    }

    .origin-location__progress,
    .origin-location__status {
        grid-column: 1;
    }
}

.error {
    color: var(--gh-red-soft);
    font-size: 12px;
    margin-top: 6px;
    display: block;
}

/* Recolored for the dark theme -- the light-mode versions were unreadable on this page */
.alert { padding: 15px; margin-bottom: 20px; border-radius: 10px; border: 1px solid var(--gh-border); }
.alert-success { color: #b7f5c8; background-color: rgba(46, 125, 50, 0.25); border-color: rgba(46, 125, 50, 0.4); }
.alert-warning { color: #ffe7ad; background-color: rgba(224, 165, 58, 0.16); border-color: rgba(224, 165, 58, 0.38); }
.alert-danger { color: #ffd0d8; background-color: rgba(255, 0, 60, 0.15); border-color: var(--gh-border-red); }

.alert span {
    display: block;
    line-height: 1.55;
}

.alert-action {
    display: inline-flex;
    margin-top: 10px;
    color: #fff;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

input,
select {
    transition: border-color 0.3s ease;
}
