/**
 * Signup page — Dashboard 4.0 visual language (extends dashboard4-base.css)
 * Intentionally mirrors auth-login-d4.css
 */
.auth-signup-d4 {
    min-height: calc(100vh - 72px);
    padding: 16px 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-signup-d4::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 520px at 15% 10%, rgba(124, 140, 255, 0.18), transparent 60%),
        radial-gradient(900px 420px at 85% 0%, rgba(50, 216, 255, 0.12), transparent 55%),
        radial-gradient(900px 520px at 70% 90%, rgba(16, 185, 129, 0.10), transparent 60%),
        linear-gradient(160deg, rgba(10, 12, 24, 0.92) 0%, rgba(6, 8, 16, 0.98) 100%);
    pointer-events: none;
    z-index: 0;
}

.auth-signup-d4 .auth-signup-inner {
    width: min(560px, 100%);
    display: block;
    position: relative;
    z-index: 1;
    padding: 0 12px;
}

.auth-signup-d4 .auth-signup-card {
    padding: 14px 14px;
}

.auth-signup-d4 .auth-signup-card-head {
    margin-bottom: 10px;
}

.auth-signup-d4 .auth-signup-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.auth-signup-d4 .auth-signup-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 950;
    letter-spacing: -0.01em;
    color: #eef2ff;
}

.auth-signup-d4 .auth-signup-subtitle {
    margin: 8px 0 0;
    color: rgba(220, 226, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.4;
}

.auth-signup-d4 .auth-signup-head-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.auth-signup-d4 .auth-signup-head-actions .d4-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.auth-signup-d4 .auth-signup-kicker {
    margin: 0 0 8px;
    color: rgba(220, 226, 255, 0.68);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.auth-signup-d4 .auth-signup-alert {
    margin: 10px 0 12px;
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 650;
    line-height: 1.45;
}
.auth-signup-d4 .auth-signup-alert--success {
    border: 1px solid rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.1);
    color: #bbf7d0;
}
.auth-signup-d4 .auth-signup-alert--error {
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(239, 68, 68, 0.1);
    color: #fecaca;
}

.auth-signup-d4 .auth-signup-google {
    margin-top: 6px;
}
.auth-signup-d4 .auth-signup-google a {
    width: 100%;
    justify-content: center;
}

.auth-signup-d4 .auth-signup-divider {
    margin: 14px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(220, 226, 255, 0.55);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.auth-signup-d4 .auth-signup-divider::before,
.auth-signup-d4 .auth-signup-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.10);
}

.auth-signup-d4 .auth-signup-field {
    margin-top: 10px;
}
.auth-signup-d4 .auth-signup-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(220, 226, 255, 0.55);
}
.auth-signup-d4 .auth-signup-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #eef2ff;
    font-size: 0.92rem;
    font-weight: 650;
    box-sizing: border-box;
}
.auth-signup-d4 .auth-signup-field input:focus {
    outline: none;
    border-color: rgba(124, 140, 255, 0.55);
}

.auth-signup-d4 .auth-signup-legal {
    margin: 10px 0 0;
    color: rgba(220, 226, 255, 0.60);
    font-size: 0.82rem;
    font-weight: 650;
    line-height: 1.5;
}
.auth-signup-d4 .auth-signup-legal a {
    color: rgba(50, 216, 255, 0.92);
    text-decoration: none;
    font-weight: 800;
}
.auth-signup-d4 .auth-signup-legal a:hover {
    text-decoration: underline;
}

.auth-signup-d4 .auth-signup-submit {
    margin-top: 12px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.45);
    background: rgba(16, 185, 129, 0.16);
    color: #eef2ff;
    font-weight: 900;
    font-size: 0.92rem;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.auth-signup-d4 .auth-signup-submit:hover {
    transform: translateY(-1px);
    border-color: rgba(52, 211, 153, 0.55);
    background: rgba(16, 185, 129, 0.22);
}
.auth-signup-d4 .auth-signup-submit[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.auth-signup-d4 .auth-signup-links {
    margin-top: 12px;
    display: flex;
    gap: 12px 18px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: rgba(220, 226, 255, 0.65);
    font-size: 0.86rem;
    font-weight: 700;
}
.auth-signup-d4 .auth-signup-links a {
    color: rgba(50, 216, 255, 0.92);
    text-decoration: none;
    font-weight: 850;
}
.auth-signup-d4 .auth-signup-links a:hover {
    text-decoration: underline;
}

@media (max-width: 520px) {
    .auth-signup-d4 .auth-signup-head-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Light mode */
body.light-mode .auth-signup-d4::before,
html[data-theme="light"] .auth-signup-d4::before {
    background:
        radial-gradient(1200px 520px at 15% 10%, rgba(99, 102, 241, 0.18), transparent 60%),
        radial-gradient(900px 420px at 85% 0%, rgba(14, 165, 233, 0.12), transparent 55%),
        linear-gradient(160deg, rgba(241, 245, 249, 0.98) 0%, rgba(255, 255, 255, 1) 100%);
}
body.light-mode .auth-signup-d4 .auth-signup-kicker,
html[data-theme="light"] .auth-signup-d4 .auth-signup-kicker {
    color: rgba(15, 23, 42, 0.6);
}
body.light-mode .auth-signup-d4 .auth-signup-divider,
html[data-theme="light"] .auth-signup-d4 .auth-signup-divider {
    color: rgba(15, 23, 42, 0.45);
}
body.light-mode .auth-signup-d4 .auth-signup-divider::before,
body.light-mode .auth-signup-d4 .auth-signup-divider::after,
html[data-theme="light"] .auth-signup-d4 .auth-signup-divider::before,
html[data-theme="light"] .auth-signup-d4 .auth-signup-divider::after {
    background: rgba(15, 23, 42, 0.10);
}
body.light-mode .auth-signup-d4 .auth-signup-field label,
html[data-theme="light"] .auth-signup-d4 .auth-signup-field label {
    color: rgba(15, 23, 42, 0.55);
}
body.light-mode .auth-signup-d4 .auth-signup-field input,
html[data-theme="light"] .auth-signup-d4 .auth-signup-field input {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(15, 23, 42, 0.92);
}
body.light-mode .auth-signup-d4 .auth-signup-legal,
html[data-theme="light"] .auth-signup-d4 .auth-signup-legal {
    color: rgba(15, 23, 42, 0.6);
}
body.light-mode .auth-signup-d4 .auth-signup-links,
html[data-theme="light"] .auth-signup-d4 .auth-signup-links {
    color: rgba(15, 23, 42, 0.62);
}
body.light-mode .auth-signup-d4 .auth-signup-title,
html[data-theme="light"] .auth-signup-d4 .auth-signup-title {
    color: rgba(15, 23, 42, 0.92);
}
body.light-mode .auth-signup-d4 .auth-signup-subtitle,
html[data-theme="light"] .auth-signup-d4 .auth-signup-subtitle {
    color: rgba(15, 23, 42, 0.62);
}

