/*
 * AUconnection public customer registration and password-setup pages.
 * Scoped styles keep the existing corporate website pages unchanged.
 * Supports the shared html[data-theme="light|dark"] preference.
 */

.customer-auth-page {
    --customer-auth-bg: #061326;
    --customer-auth-panel: rgba(13, 34, 58, 0.94);
    --customer-auth-panel-alt: rgba(14, 43, 72, 0.82);
    --customer-auth-text: #eef6ff;
    --customer-auth-muted: #a9bfd7;
    --customer-auth-border: rgba(45, 166, 220, 0.30);
    --customer-auth-input: #07182c;
    --customer-auth-input-text: #edf7ff;
    --customer-auth-accent: #09c3e8;
    --customer-auth-accent-blue: #087df5;
    --customer-auth-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(42px, 7vw, 86px) 20px;
    color: var(--customer-auth-text);
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 174, 255, 0.16), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(0, 213, 228, 0.13), transparent 30%),
        linear-gradient(135deg, #061326 0%, #0a1b31 52%, #07182c 100%);
}

.customer-auth-page::before,
.customer-auth-page::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border: 1px solid rgba(0, 195, 232, 0.16);
    border-radius: 50%;
}

.customer-auth-page::before {
    width: 430px;
    height: 430px;
    top: -260px;
    right: -130px;
    box-shadow: 0 0 0 28px rgba(0, 195, 232, 0.025), 0 0 0 62px rgba(0, 195, 232, 0.02);
}

.customer-auth-page::after {
    width: 300px;
    height: 300px;
    bottom: -220px;
    left: -90px;
    box-shadow: 0 0 0 25px rgba(0, 125, 245, 0.035), 0 0 0 54px rgba(0, 125, 245, 0.025);
}

.customer-auth-container {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: clamp(28px, 5vw, 68px);
    align-items: center;
}

.customer-auth-copy {
    max-width: 470px;
}

.customer-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--customer-auth-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.customer-auth-eyebrow::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--customer-auth-accent-blue), var(--customer-auth-accent));
}

.customer-auth-copy h1 {
    margin: 18px 0 16px;
    color: var(--customer-auth-text);
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    line-height: 1.07;
    letter-spacing: -0.04em;
}

.customer-auth-copy h1 span {
    color: transparent;
    background: linear-gradient(100deg, #168bff, #05d2e8 75%);
    background-clip: text;
    -webkit-background-clip: text;
}

.customer-auth-copy > p {
    color: var(--customer-auth-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.customer-auth-benefits {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.customer-auth-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--customer-auth-muted);
    line-height: 1.55;
}

.customer-auth-benefits li::before {
    content: "✓";
    flex: 0 0 23px;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border: 1px solid var(--customer-auth-border);
    border-radius: 8px;
    color: var(--customer-auth-accent);
    background: var(--customer-auth-panel-alt);
    font-weight: 800;
}

.customer-auth-card {
    position: relative;
    padding: clamp(24px, 4vw, 38px);
    border: 1px solid var(--customer-auth-border);
    border-radius: 24px;
    background: linear-gradient(145deg, var(--customer-auth-panel), var(--customer-auth-panel-alt));
    box-shadow: var(--customer-auth-shadow), inset 0 1px 0 rgba(255,255,255,0.045);
    backdrop-filter: blur(18px);
}

.customer-auth-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 28px;
    right: 28px;
    height: 2px;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent, var(--customer-auth-accent), transparent);
}

.customer-auth-card h2 {
    margin: 8px 0 7px;
    color: var(--customer-auth-text);
    font-size: clamp(1.45rem, 2vw, 1.85rem);
}

.customer-auth-card .customer-auth-subtitle {
    margin: 0 0 24px;
    color: var(--customer-auth-muted);
    line-height: 1.6;
}

.customer-auth-form {
    display: grid;
    gap: 15px;
}

.customer-auth-form .customer-auth-field {
    display: grid;
    gap: 7px;
}

.customer-auth-form label {
    color: var(--customer-auth-text);
    font-size: 0.88rem;
    font-weight: 700;
}

.customer-auth-form input:not([type="checkbox"]),
.customer-auth-form select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--customer-auth-border);
    border-radius: 11px;
    outline: none;
    color: var(--customer-auth-input-text);
    background: var(--customer-auth-input);
    font: inherit;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.customer-auth-form input:focus,
.customer-auth-form select:focus {
    border-color: var(--customer-auth-accent);
    box-shadow: 0 0 0 3px rgba(0, 195, 232, 0.13);
}

.customer-auth-form input::placeholder {
    color: var(--customer-auth-muted);
    opacity: .72;
}

.customer-auth-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.customer-auth-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--customer-auth-muted);
    font-size: .83rem;
    line-height: 1.55;
}

.customer-auth-consent input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--customer-auth-accent-blue);
}

.customer-auth-submit {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(105deg, var(--customer-auth-accent-blue), var(--customer-auth-accent));
    box-shadow: 0 12px 28px rgba(0, 125, 245, .19);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.customer-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 125, 245, .26);
    filter: saturate(1.1);
}

.customer-auth-note,
.customer-auth-alert {
    padding: 13px 15px;
    border: 1px solid var(--customer-auth-border);
    border-radius: 12px;
    color: var(--customer-auth-muted);
    background: var(--customer-auth-panel-alt);
    font-size: .86rem;
    line-height: 1.6;
}

.customer-auth-alert-success {
    border-color: rgba(22, 163, 113, .5);
    color: #b8f2d9;
    background: rgba(12, 112, 79, .23);
}

.customer-auth-alert-error {
    border-color: rgba(239, 86, 86, .48);
    color: #ffd0d0;
    background: rgba(133, 31, 42, .25);
}

.customer-auth-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    color: var(--customer-auth-muted);
    font-size: .85rem;
}

.customer-auth-footer-links a {
    color: var(--customer-auth-accent);
    font-weight: 700;
    text-decoration: none;
}

.customer-auth-footer-links a:hover { text-decoration: underline; }

.customer-auth-complete {
    text-align: center;
    padding: 14px 0;
}

.customer-auth-complete-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border: 1px solid rgba(16, 185, 129, .4);
    border-radius: 20px;
    color: #34d399;
    background: rgba(16, 185, 129, .11);
    font-size: 1.8rem;
}

/* Colourful, bright but not plain-white Light Mode palette. */
html[data-theme="light"] .customer-auth-page {
    --customer-auth-bg: #eaf3fc;
    --customer-auth-panel: rgba(255, 255, 255, .94);
    --customer-auth-panel-alt: rgba(223, 239, 253, .88);
    --customer-auth-text: #153653;
    --customer-auth-muted: #526b85;
    --customer-auth-border: rgba(27, 126, 190, .23);
    --customer-auth-input: #f4f9fe;
    --customer-auth-input-text: #183b5b;
    --customer-auth-accent: #078bbd;
    --customer-auth-accent-blue: #087cf0;
    --customer-auth-shadow: 0 24px 70px rgba(30, 88, 135, .14);
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 174, 255, .20), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(0, 213, 228, .19), transparent 30%),
        linear-gradient(135deg, #e5f1fc 0%, #f4f8fd 48%, #dff4f7 100%);
}

html[data-theme="light"] .customer-auth-alert-success { color: #12684d; }
html[data-theme="light"] .customer-auth-alert-error { color: #9b2932; }

/* Honeypot is hidden from visitors but remains present for simple bot checks. */
.customer-auth-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 850px) {
    .customer-auth-container {
        grid-template-columns: minmax(0, 1fr);
        width: min(610px, 100%);
        gap: 28px;
    }
    .customer-auth-copy { max-width: none; text-align: center; }
    .customer-auth-benefits { max-width: 410px; margin: 22px auto 0; text-align: left; }
}

@media (max-width: 520px) {
    .customer-auth-page { padding: 34px 14px 48px; }
    .customer-auth-grid-two { grid-template-columns: minmax(0, 1fr); }
    .customer-auth-card { padding: 22px 18px; border-radius: 19px; }
    .customer-auth-copy h1 { font-size: 2.25rem; }
}
