* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }

body.gh-auth-body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #e7ecf3;
    color: #0f172a;
}

.gh-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.gh-auth-card-split {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
}

.gh-auth-left {
    background: #0f172a;
    color: #ffffff;
    padding: 56px 52px;
    display: grid;
    align-items: center;
}

.gh-auth-left__inner {
    max-width: 440px;
}

.gh-auth-logo-link {
    display: inline-flex;
    text-decoration: none;
    margin-bottom: 34px;
}

.gh-auth-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
}

.gh-auth-left h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.gh-auth-left p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.76);
}

.gh-auth-right {
    background: #ffffff;
    display: grid;
    align-items: center;
    padding: 56px 58px;
}

.gh-auth-right__inner {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.gh-auth-header {
    margin-bottom: 28px;
}

.gh-auth-header h2 {
    margin: 0 0 8px;
    font-size: 2.2rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: #101828;
}

.gh-auth-header p {
    margin: 0;
    font-size: 1rem;
    color: #667085;
}

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

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

.gh-auth-field label {
    font-size: 0.92rem;
    font-weight: 600;
    color: #344054;
}

.gh-auth-field input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid #cfd8e6;
    border-radius: 16px;
    background: #ffffff;
    color: #101828;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gh-auth-field input::placeholder {
    color: #98a2b3;
}

.gh-auth-field input:focus {
    outline: none;
    border-color: #356ae6;
    box-shadow: 0 0 0 4px rgba(53, 106, 230, 0.12);
}

.gh-auth-help {
    font-size: 0.83rem;
    color: #667085;
    line-height: 1.5;
}

.gh-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.gh-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #475467;
    font-size: 0.94rem;
}

.gh-auth-link {
    color: #356ae6;
    text-decoration: none;
    font-weight: 600;
}

.gh-auth-link:hover {
    text-decoration: underline;
}

.gh-auth-alert {
    border-radius: 14px;
    padding: 13px 14px;
    line-height: 1.55;
    font-size: 0.94rem;
    display: grid;
    gap: 4px;
}

.gh-auth-alert--error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.14);
    color: #b42318;
}

.gh-auth-alert--success {
    background: rgba(22, 163, 74, 0.08);
    border: 1px solid rgba(22, 163, 74, 0.14);
    color: #15803d;
}

.gh-auth-submit {
    width: 100%;
    border: 0;
    border-radius: 18px;
    background: #356ae6;
    color: #ffffff;
    padding: 16px 18px;
    font: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gh-auth-submit:hover {
    background: #2457cc;
}

.gh-auth-footer {
    padding-top: 4px;
}

@media (max-width: 980px) {
    .gh-auth-card-split {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .gh-auth-left {
        padding: 38px 30px 24px;
    }

    .gh-auth-logo-link {
        margin-bottom: 24px;
    }

    .gh-auth-right {
        padding: 32px 30px;
    }
}

@media (max-width: 560px) {
    .gh-auth-shell {
        padding: 16px;
    }

    .gh-auth-card-split {
        border-radius: 22px;
    }

    .gh-auth-left,
    .gh-auth-right {
        padding: 24px 20px;
    }

    .gh-auth-header h2 {
        font-size: 1.8rem;
    }

    .gh-auth-left h1 {
        font-size: 2rem;
    }
}
