:root {
    --sgl-navy: #022351;
    --sgl-royal: #054f89;
    --sgl-ocean: #048abc;
    --sgl-cyan: #03a9cf;
    --sgl-light-aqua: #9fd5e4;
}

.sgl-auth-page .page-title-area,
.sgl-auth-page .edu-breadcrumb-area,
.sgl-auth-page .edublink-page-title-area {
    display: none;
}

.sgl-auth-page .site-content,
.sgl-auth-page .content-area,
.sgl-auth-page .site-main,
.sgl-auth-page .edublink-container,
.sgl-auth-page .entry-content {
    max-width: none;
    width: 100%;
}

.sgl-auth-page .site-content {
    padding-top: 0;
    padding-bottom: 0;
}

.sgl-auth-page article.edublink-single-page {
    margin: 0;
}

.sgl-auth-shell {
    display: grid;
    grid-template-columns: minmax(300px, .92fr) minmax(390px, 1.08fr);
    max-width: 1080px;
    min-height: 650px;
    margin: 72px auto;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce8ef;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(2, 35, 81, .13);
}

.sgl-auth-brand {
    position: relative;
    padding: 58px 54px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(145deg, var(--sgl-navy) 0%, var(--sgl-royal) 55%, var(--sgl-ocean) 100%);
}

.sgl-auth-brand::before,
.sgl-auth-brand::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(159, 213, 228, .22);
    border-radius: 50%;
}

.sgl-auth-brand::before { width: 340px; height: 340px; right: -155px; top: -115px; }
.sgl-auth-brand::after { width: 230px; height: 230px; left: -115px; bottom: -105px; }

.sgl-auth-logo {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 190px;
    max-height: 82px;
    margin-bottom: 58px;
    padding: 8px 12px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
}

.sgl-auth-brand h2 {
    position: relative;
    z-index: 1;
    max-width: 390px;
    margin: 12px 0 18px;
    color: #fff;
    font-size: clamp(31px, 3.2vw, 45px);
    line-height: 1.12;
}

.sgl-auth-brand > p:not(.sgl-auth-eyebrow) {
    position: relative;
    z-index: 1;
    max-width: 390px;
    color: rgba(255,255,255,.82);
    font-size: 16px;
    line-height: 1.7;
}

.sgl-auth-eyebrow,
.sgl-auth-kicker {
    margin: 0;
    color: var(--sgl-cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sgl-auth-brand ul {
    position: relative;
    z-index: 1;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.sgl-auth-brand li { display: flex; gap: 12px; margin: 14px 0; color: #fff; }
.sgl-auth-brand li span { display: grid; place-items: center; flex: 0 0 24px; height: 24px; color: var(--sgl-navy); background: var(--sgl-light-aqua); border-radius: 50%; font-size: 12px; font-weight: 900; }

.sgl-auth-panel { align-self: center; padding: 58px clamp(42px, 6vw, 76px); }
.sgl-auth-panel h1 { margin: 8px 0 12px; color: var(--sgl-navy); font-size: clamp(31px, 3vw, 42px); line-height: 1.15; }
.sgl-auth-intro { max-width: 480px; margin: 0 0 30px; color: #637386; line-height: 1.65; }

.sgl-auth-form .event-auth-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sgl-login-page .sgl-auth-form .event-auth-form { grid-template-columns: 1fr; }
.sgl-auth-form .form-row { margin: 0; }
.sgl-auth-form .form-row:nth-last-child(-n+2),
.sgl-auth-form .submit { grid-column: 1 / -1; }
.sgl-auth-form label { display: block; margin: 0 0 8px; color: #173451; font-size: 14px; font-weight: 700; }
.sgl-auth-form .required { margin-left: 3px; color: #d73f4c; }

.sgl-auth-form input[type="text"],
.sgl-auth-form input[type="email"],
.sgl-auth-form input[type="password"] {
    width: 100% !important;
    min-width: 0;
    height: 52px;
    padding: 0 15px;
    color: #142d46;
    background: #f7fafc;
    border: 1px solid #cbdbe5;
    border-radius: 10px;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.sgl-auth-form input:focus {
    outline: none;
    background: #fff;
    border-color: var(--sgl-ocean);
    box-shadow: 0 0 0 4px rgba(4, 138, 188, .14);
}

.sgl-auth-form input[type="checkbox"] { width: 18px; height: 18px; margin: 0 8px 0 0; accent-color: var(--sgl-ocean); vertical-align: -3px; }
.sgl-auth-form label.inline { margin-top: 2px; font-weight: 500; }
.sgl-auth-form #reg_passmail { color: #6b7d8e; font-size: 13px; line-height: 1.5; }

.sgl-auth-form #wp-submit {
    width: 100%;
    min-height: 52px;
    margin-top: 3px;
    padding: 13px 24px;
    color: #fff;
    background: linear-gradient(90deg, var(--sgl-royal), var(--sgl-ocean));
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(4, 79, 137, .22);
    font-size: 16px;
    font-weight: 750;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.sgl-auth-form #wp-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(4,79,137,.28); }
.sgl-auth-form .event-wrapper-shortcode > p { margin: 18px 0 0; text-align: center; }
.sgl-auth-form .event-wrapper-shortcode > p a { color: var(--sgl-royal); font-weight: 700; }
.sgl-auth-switch { margin: 22px 0 0; text-align: center; }
.sgl-auth-switch a { color: var(--sgl-royal); font-weight: 750; text-decoration: none; }
.sgl-auth-help { margin: 13px 0 0; color: #748392; font-size: 13px; text-align: center; }
.sgl-auth-help a { color: var(--sgl-ocean); }

/* The original theme navigation duplicates these links; the shell provides clearer actions. */
.sgl-auth-form .event-wrapper-shortcode > p:last-child { display: none; }

@media (max-width: 991px) {
    .sgl-auth-shell { grid-template-columns: 1fr; max-width: 680px; margin: 48px auto; }
    .sgl-auth-brand { padding: 40px 44px; }
    .sgl-auth-logo { margin-bottom: 30px; }
    .sgl-auth-brand ul { display: none; }
}

@media (max-width: 620px) {
    .sgl-auth-page .site-content { padding-right: 16px; padding-left: 16px; }
    .sgl-auth-shell { margin: 26px auto; border-radius: 18px; }
    .sgl-auth-brand { padding: 30px 26px; }
    .sgl-auth-brand h2 { font-size: 29px; }
    .sgl-auth-logo { max-width: 155px; max-height: 68px; margin-bottom: 22px; }
    .sgl-auth-panel { padding: 38px 24px 42px; }
    .sgl-auth-form .event-auth-form { grid-template-columns: 1fr; }
    .sgl-auth-form .form-row { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .sgl-auth-form input,
    .sgl-auth-form #wp-submit { transition: none; }
}
