/**
 * Get Started (sc-79759) registration page style
 *
 * Cloned from RocketSAAS get-started.html. Everything here is scoped under
 * .gs-page so it stays isolated from the rest of the Shiptheory application
 *
 * This file only holds the shared building blocks (tokens, layout helpers,
 * buttons) and the hero shell + registration form owned by Users/add.ctp.
 * Section specific styles live in a <style> block inside the element that
 * renders them, in Element/GetStarted/.
 */

.gs-page {
    --gs-navy-950: #071122;
    --gs-navy-900: #0a2647;
    --gs-navy-grad: linear-gradient(81.87deg, #1b222a 0%, #002248 100%);
    --gs-teal-500: #28a8e7;
    --gs-teal-600: #1c8fc7;
    --gs-teal-50: #e8f5fd;
    --gs-ink-900: #102238;
    --gs-ink-700: #3a4658;
    --gs-ink-500: rgba(16, 34, 56, .75);
    --gs-line: rgba(93, 113, 133, .16);
    --gs-bg-alt: #f6f8fc;
    --gs-radius: 20px;
    --gs-radius-sm: 10px;
    --gs-shadow-lg: 0 24px 48px -12px rgba(10, 38, 71, .18);

    font-family: 'Sora', system-ui, -apple-system, sans-serif;
    color: var(--gs-ink-900);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Only our own building blocks get border-box - the registration form keeps
   the content-box sizing the legacy stylesheets size it against. */
.gs-page [class^="gs-"],
.gs-page [class*=" gs-"] {
    box-sizing: border-box;
}

.gs-page img,
.gs-page .gs-section svg {
    display: block;
    max-width: 100%;
}

.gs-page .gs-wrap {
    max-width: 1384px;
    margin: 0 auto;
    padding: 0 36px;
}

.gs-page .gs-section {
    padding: 96px 0;
}

.gs-page .gs-h2 {
    font-family: 'Sora', system-ui, sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 45px;
    text-align: center;
    letter-spacing: -0.01em;
    color: #0a2647;
    text-transform: none;
}

.gs-page .gs-section-head {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
}

.gs-page .gs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Sora', system-ui, sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 26px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform .15s ease, background .15s ease;
    white-space: nowrap;
}

.gs-page .gs-btn:hover {
    transform: translateY(-1px);
    text-decoration: none;
}

.gs-page .gs-btn-teal {
    background: var(--gs-teal-500);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(40, 168, 231, .45);
}

.gs-page .gs-btn-teal:hover {
    background: var(--gs-teal-600);
    color: #fff;
}

/* ---------- Hero shell ----------
   The copy column that sits in the left of the grid styles itself, see
   Element/GetStarted/get_started_today.ctp */
.gs-page .gs-hero {
    background: var(--gs-navy-grad);
    color: #fff;
    /* Clears the fixed header (112px tall). */
    padding: 136px 0 130px;
    position: relative;
}

.gs-page .gs-hero::before {
    position: absolute;
    width: 100%;
    height: 70px;
    background: #fff;
    clip-path: polygon(100% 0, 0% 100%, 100% 100%);
    bottom: 0;
    left: 0;
    content: " ";
}

.gs-page .gs-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .85fr;
    gap: 64px;
    align-items: start;
    margin-top: 24px;
}

/* ---------- Sign up card ----------
   The registration form is legacy markup rendered by CakePHP's FormHelper and
   styled by site.less against a dark page. Everything below re-dresses it as
   the designer's white signup card. Selectors are deliberately deeper than the
   ".sign_bg .login .sign_cont" rules they override, and !important appears only
   where responsive.css already uses it. */
.gs-page .gs-hero-form {
    display: block;
}

.gs-page .gs-hero-form .login {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.gs-page .gs-hero-form .login .sign_cont {
    display: block;
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0;
    height: auto;
    margin: 0;
    /* responsive.css re-pads .sign_cont and its ul with !important. */
    padding: 36px !important;
    background: #fff;
    border-radius: var(--gs-radius);
    box-shadow: var(--gs-shadow-lg);
    font-family: 'Sora', system-ui, -apple-system, sans-serif;
    color: var(--gs-ink-900);
    text-align: left;
}

.gs-page .gs-hero-form .login .sign_cont h3 {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--gs-ink-900);
    text-align: left;
    text-transform: none;
    padding: 0 0 5px !important;
}

/* Field rows */
.gs-page .gs-hero-form .login .sign_cont ul {
    display: block;
    background: none;
    border-radius: 0;
    padding: 0 !important;
    margin: 0;
}

.gs-page .gs-hero-form .login .sign_cont ul li {
    display: block;
    padding: 0 0 16px;
}

.gs-page .gs-hero-form .login .sign_cont ul li .cont {
    position: relative;
    width: 100%;
}

/* The blue square arrow site.less bolts onto every select. */
.gs-page .gs-hero-form .login .sign_cont ul li .cont::before,
.gs-page .gs-hero-form .login .sign_cont ul li .cont::after {
    display: none;
}

.gs-page .gs-hero-form .login .sign_cont ul li label {
    display: block;
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--gs-ink-700);
    margin-bottom: 6px;
    padding: 0;
    text-transform: none;
}

.gs-page .gs-hero-form .login .sign_cont ul li input:not([type=checkbox]):not([type=hidden]),
.gs-page .gs-hero-form .login .sign_cont ul li select {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    max-width: 100%;
    padding: 12px 14px !important;
    margin: 0;
    border: 1px solid var(--gs-line);
    border-radius: 9px;
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--gs-ink-900);
    background: #fbfcfe;
    box-shadow: none;
}

.gs-page .gs-hero-form .login .sign_cont ul li select {
    padding-right: 38px !important;
    background-image: url('../img/select-chevron.svg');
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

.gs-page .gs-hero-form .login .sign_cont ul li input:not([type=checkbox]):focus,
.gs-page .gs-hero-form .login .sign_cont ul li select:focus {
    outline: none;
    border-color: var(--gs-teal-500);
    background-color: #fff;
}

/* First name / last name share a row */
.gs-page .gs-hero-form .login .sign_cont ul li.register_name {
    display: flex;
    gap: 12px;
}

.gs-page .gs-hero-form .login .sign_cont ul li.register_name .input {
    display: block;
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    float: none;
    margin: 0;
}

/* Password hint */
.gs-page .gs-hero-form .login .sign_cont ul li .score {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--gs-ink-500);
}

/* Terms and conditions */
/* Block, not flex - the label's copy contains inline links that flex would
   break out onto their own lines. */
.gs-page .gs-hero-form .login .sign_cont ul li .input.checkbox label {
    display: block;
    position: relative;
    padding: 0 0 0 26px;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: var(--gs-ink-500);
    margin: 0;
}

.gs-page .gs-hero-form .login .sign_cont ul li .input.checkbox label input[type=checkbox] {
    position: absolute;
    left: 0;
    top: 2px;
    float: none;
    margin: 0;
}

.gs-page .gs-hero-form .login .sign_cont ul li .input.checkbox label a.text {
    display: inline;
    width: auto;
    padding: 0;
    margin: 0;
    background: none;
    border-radius: 0;
    font-size: inherit;
    line-height: inherit;
    color: var(--gs-teal-600);
    font-weight: 600;
    text-decoration: underline;
}

/* Primary action */
.gs-page .gs-hero-form .login .sign_cont ul li a:not(.text) {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Without this the padding is added to the 100% and the button overflows
       its slide, showing through the slider on the neighbouring step. */
    box-sizing: border-box;
    width: 100% !important;
    margin: 6px 0 0;
    padding: 14px 26px;
    border-radius: 10px;
    background: var(--gs-teal-500);
    box-shadow: 0 8px 20px -6px rgba(40, 168, 231, .45);
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    color: #fff;
    text-align: center;
    text-transform: none;
    text-decoration: none;
}

.gs-page .gs-hero-form .login .sign_cont ul li a:not(.text):hover {
    background: var(--gs-teal-600);
}

.gs-page .gs-hero-form .login .sign_cont ul li a:not(.text) span {
    display: none;
}

.gs-page .gs-hero-form .login .sign_cont ul li a.disabled:not(.text) {
    background: #7a7a7a;
    box-shadow: none;
}

.gs-page .gs-hero-form .login .sign_cont ul li a.disabled.loading:not(.text) {
    background: #7a7a7a url('/img/loading_ellipsis_white.gif') no-repeat center center;
    min-height: 48px;
}

/* "Already Registered? Login" */
.gs-page .gs-hero-form .login .sign_cont em,
.gs-page .gs-hero-form .login .sign_cont a.last {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 13.5px;
    line-height: 20px;
    font-style: normal;
    background: none;
    padding: 0;
    margin: 0;
}

.gs-page .gs-hero-form .login .sign_cont em {
    display: inline;
    color: var(--gs-ink-500);
}

.gs-page .gs-hero-form .login .sign_cont a.last {
    color: var(--gs-teal-600);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

.gs-page .gs-hero-form .login .sign_cont a.last:hover {
    text-decoration: underline;
}

/* Centre the trailing "Already Registered?" line without moving the fields. */
.gs-page .gs-hero-form .login .sign_cont form {
    text-align: center;
    padding-top: 2px;
}

.gs-page .gs-hero-form .login .sign_cont ul li.pad_last {
    padding-bottom: 18px;
}

.gs-page .gs-hero-form .login .sign_cont form ul {
    text-align: left;
}

/* Flash messages sit inside the card now */
.gs-page .gs-hero-form .login .sign_cont .message.flash_message {
    font-family: 'Sora', system-ui, sans-serif;
    font-size: 13.5px;
    margin-bottom: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
    .gs-page .gs-hero-grid {
        gap: 40px;
    }
}

@media (max-width: 1100px) {
    .gs-page .gs-hero {
        /* Header drops to 88px at this breakpoint. */
        padding: 112px 0 64px;
    }

    .gs-page .gs-hero-grid {
        grid-template-columns: 1fr;
    }

    /* Single column - stop the card stretching the full hero width. */
    .gs-page .gs-hero-form .login {
        max-width: 544px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .gs-page .gs-section {
        padding: 64px 0;
    }

    .gs-page .gs-wrap {
        padding: 0 20px;
    }

    .gs-page .gs-hero {
        /* Header drops to 76px at this breakpoint. */
        padding: 100px 0 60px;
    }

    .gs-page .gs-hero::before {
        height: 30px;
    }

    .gs-page .gs-hero-form .login .sign_cont {
        padding: 24px !important;
    }

    .gs-page .gs-hero-form .login .sign_cont ul li.register_name {
        gap: 10px;
    }

    .gs-page .gs-h2 {
        font-size: 26px;
        line-height: 30px;
    }

    .gs-page .gs-section-head {
        margin-bottom: 30px;
    }
}
