/* Sign-in and registration only. No Drupal or application styles changed. */
body.upc-auth {
    min-height: 100vh;
    margin: 0;
    color: #17365d;
    background:
        radial-gradient(circle at 8% 8%, rgba(255,255,255,.9), transparent 29rem),
        radial-gradient(circle at 93% 88%, rgba(255,184,104,.35), transparent 26rem),
        linear-gradient(135deg, #fff9df 0%, #fae7a1 50%, #fff4da 100%);
}

.upc-auth-layout {
    box-sizing: border-box;
    width: min(1320px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 80px);
    align-items: center;
}

.upc-auth-hero {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 42px;
}

.upc-auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #103b70;
}

.upc-auth-brand img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.upc-auth-brand strong,
.upc-auth-brand span {
    display: block;
}

.upc-auth-brand strong {
    max-width: 230px;
    font-size: 1.05rem;
    line-height: 1.25;
}

.upc-auth-brand span {
    margin-top: 4px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #a6400a;
}

.upc-auth-eyebrow {
    display: inline-block;
    padding: 8px 13px;
    border: 1px solid rgba(196, 81, 12, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    color: #9b3b0a;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.upc-auth-intro h2 {
    max-width: 12ch;
    margin: 20px 0 16px;
    color: #103b70;
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.upc-auth-intro p {
    max-width: 30rem;
    color: #36516d;
    font-size: 1.1rem;
    line-height: 1.7;
}

.upc-auth-sparkle {
    display: flex;
    gap: 20px;
    margin-top: 24px;
    color: #eb6a16;
    font-size: 1.6rem;
}

.upc-auth-website {
    color: #103b70;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.upc-auth-form-wrap {
    display: flex;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.upc-auth-card {
    box-sizing: border-box;
    width: 100%;
    padding: clamp(24px, 3.5vw, 42px);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 28px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(49, 61, 77, .14), 0 4px 18px rgba(178, 94, 27, .08);
}

.upc-auth-card h1 {
    color: #103b70;
    font-weight: 800;
    letter-spacing: -.02em;
}

.upc-auth-card .form-label {
    color: #263f5c;
    font-weight: 700;
}

.upc-auth-card input:not([type="radio"]):not([type="checkbox"]) {
    min-height: 46px;
    border: 1px solid #cedbe5;
    border-radius: 12px;
    background: #fff;
}

.upc-auth-card input:focus-visible,
.upc-auth-card a:focus-visible,
.upc-auth-card button:focus-visible,
.upc-auth-card summary:focus-visible,
.upc-auth-website:focus-visible {
    outline: 3px solid #ed751c;
    outline-offset: 3px;
}

.upc-auth-card input[type="radio"],
.upc-auth-card input[type="checkbox"] {
    accent-color: #e86613;
}

.upc-auth-card .btn-primary {
    min-height: 46px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc5308, #f27918);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(197, 79, 12, .22);
}

.upc-auth-card .btn-primary:hover {
    background: linear-gradient(135deg, #bb4205, #dd5b0a);
}

.upc-auth-card a {
    color: #b74409;
}

.upc-auth-card details {
    border-top: 1px solid #e7edf1;
    padding-top: 20px;
}

@media (max-width: 800px) {
    .upc-auth-layout {
        min-height: 100vh;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        align-content: start;
        padding: 24px 18px 40px;
    }

    .upc-auth-hero {
        gap: 22px;
    }

    .upc-auth-brand img {
        width: 50px;
        height: 50px;
    }

    .upc-auth-intro h2 {
        max-width: none;
        margin: 12px 0;
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .upc-auth-intro p {
        font-size: 1rem;
    }

    .upc-auth-sparkle {
        display: none;
    }
}

@media (max-width: 420px) {
    .upc-auth-card {
        padding: 22px 18px;
    }

    .upc-auth-register form > div:last-child {
        flex-wrap: wrap;
        gap: 16px;
    }
}


/* UPC logo on the sign-in and registration pages. */
.upc-auth-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.upc-auth-brand img {
    width: min(320px, 75vw);
    max-width: 100%;
    height: auto;
    max-height: 100px;
    object-fit: contain;
    object-position: left center;
}
