* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-2: #06b6d4;
    --gold: #f6c85f;
    --dark: #0c1730;
    --text: #1e293b;
    --muted: #5f6f8a;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --soft-blue: #eff6ff;
    --card: rgba(255, 255, 255, 0.62);
    --stroke: rgba(255, 255, 255, 0.65);
    --shadow: 0 24px 70px rgba(36, 72, 143, 0.14);
    --shadow-small: 0 12px 35px rgba(15, 23, 42, 0.09);
    --radius-xl: 32px;
    --radius-lg: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: var(--light);
    color: var(--text);
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 34%),
        radial-gradient(circle at bottom, rgba(246, 200, 95, 0.08), transparent 42%);
}

.signup-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.signup-bg::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(6, 182, 212, 0.16));
    filter: blur(4px);
    animation: floatBlob 14s ease-in-out infinite alternate;
}

.signup-bg::after {
    content: "";
    position: absolute;
    bottom: -190px;
    left: -150px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(246, 200, 95, 0.15), rgba(37, 99, 235, 0.13));
    filter: blur(6px);
    animation: floatBlob 18s ease-in-out infinite alternate-reverse;
}

a {
    text-decoration: none;
}

button,
a,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* PAGE */
.signup-page {
    width: min(1240px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 50px 0 30px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
    gap: 50px;
}

/* LEFT CONTENT */
.signup-left {
    position: relative;
    padding: 30px 0;
    animation: fadeUp 1s ease both;
}

.signup-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--dark);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.6px;
    margin-bottom: 34px;
    transition: opacity 0.3s ease;
}

.signup-logo:hover {
    opacity: 0.8;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.signup-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
}

.signup-badge i {
    color: var(--gold);
}

.signup-left h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -2.5px;
    color: var(--dark);
    max-width: 680px;
    margin-bottom: 24px;
}

.signup-left>p {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.signup-left h1::selection,
.signup-left p::selection {
    background: rgba(37, 99, 235, 0.18);
}

/* HERO VISUAL */
.hero-visual {
    position: relative;
    min-height: 380px;
    display: grid;
    place-items: center;
    margin-bottom: 34px;
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.15);
    animation: spin 22s linear infinite;
    pointer-events: none;
}

.orbit-one {
    width: 460px;
    height: 460px;
}

.orbit-two {
    width: 560px;
    height: 560px;
    border-style: dashed;
    animation-direction: reverse;
    animation-duration: 28s;
}

.hero-card {
    position: relative;
    width: min(100%, 420px);
    padding: 16px;
    border-radius: 34px;
    overflow: hidden;
    background: var(--card);
    backdrop-filter: blur(18px);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    animation: float 7s ease-in-out infinite;
}

.hero-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 28px;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.hero-card:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.hero-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 16px;
}

.hero-card-bottom strong {
    font-size: 1.1rem;
    letter-spacing: -0.03em;
}

.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #875d00;
    background: rgba(246, 200, 95, 0.22);
}

.rating-chip i {
    color: var(--gold);
}

/* BENEFITS */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 34px 0;
}

.benefit-item {
    min-height: 72px;
    background: var(--card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-small);
    border-color: rgba(37, 99, 235, 0.25);
}

.benefit-item i {
    width: 40px;
    height: 40px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(6, 182, 212, 0.14));
    color: var(--primary);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 16px;
}

.benefit-item span {
    color: var(--text);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.45;
}

/* TRUST STATS */
.trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 30px;
}

.trust-stats div {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px 16px;
    box-shadow: var(--shadow-small);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-stats div:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.trust-stats strong {
    display: block;
    font-size: 1.8rem;
    letter-spacing: -0.06em;
    color: var(--primary);
    margin-bottom: 5px;
}

.trust-stats span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* FORM CARD */
.signup-card {
    position: sticky;
    top: 30px;
    align-self: start;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 38px;
    padding: 50px 46px;
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: fadeIn 1s ease both;
    animation-delay: 0.15s;
    max-width: 520px;
    margin-left: auto;
    width: 100%;
}

.signup-card::before {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    right: -90px;
    top: -90px;
    background: rgba(37, 99, 235, 0.09);
    border-radius: 50%;
}

.signup-card::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    left: -70px;
    bottom: -70px;
    background: rgba(6, 182, 212, 0.08);
    border-radius: 50%;
}

.form-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 34px;
    color: var(--dark);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--muted);
    font-size: 15.5px;
}

/* FORM */
form {
    position: relative;
    z-index: 2;
}

.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    color: var(--dark);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
}

.input-box {
    height: 54px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 17px;
    padding: 0 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.035);
}

.input-box:focus-within {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.input-box i {
    color: var(--primary);
    font-size: 15px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.input-box input,
.input-box select {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.input-box input::placeholder {
    color: #94a3b8;
}

.input-box select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 8px center;
    padding-right: 28px;
}

/* TERMS */
.terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 22px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.5;
    cursor: pointer;
}

.terms input {
    margin-top: 4px;
    accent-color: var(--primary);
}

.terms span {
    flex: 1;
}

/* BUTTONS */
.signup-btn,
.google-btn {
    width: 100%;
    min-height: 54px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.signup-btn {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: var(--white);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
    background-size: 200% 200%;
    animation: gradientShift 4s ease-in-out infinite alternate;
}

.signup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.36);
}

.signup-btn:active,
.google-btn:active {
    transform: scale(0.98);
}

.divider {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--border);
}

.divider span {
    white-space: nowrap;
}

.google-btn {
    position: relative;
    z-index: 2;
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-small);
}

.google-btn:hover {
    color: var(--primary);
    border-color: rgba(37, 99, 235, 0.25);
    transform: translateY(-3px);
}

.google-btn i {
    color: #ea4335;
    font-size: 18px;
}

.signin-text {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-top: 24px;
    color: var(--muted);
    font-size: 14.5px;
}

.signin-text a {
    color: var(--primary);
    font-weight: 900;
    transition: color 0.25s ease;
}

.signin-text a:hover {
    text-decoration: underline;
    color: #1d4ed8;
}

/* FOOTER */
.footer {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 28px 18px;
    border-radius: 34px;
    color: var(--muted);
    display: grid;
    gap: 26px;
    background: var(--card);
    backdrop-filter: blur(18px);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    animation: fadeUp 1s ease both;
    animation-delay: 0.3s;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand strong {
    display: block;
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.footer-brand p {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.footer-col {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-col span {
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.footer-col a {
    width: fit-content;
    transition: color 0.25s ease, transform 0.25s ease;
    color: var(--muted);
    font-size: 0.94rem;
}

.footer-col a:hover {
    color: var(--primary);
    transform: translateX(3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.footer-bottom p {
    color: var(--muted);
    font-size: 0.88rem;
}

.footer-bottom a {
    color: var(--primary);
    transition: color 0.25s ease;
}

.footer-bottom a:hover {
    color: #1d4ed8;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-16px);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatBlob {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(30px, -20px, 0) scale(1.08);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .signup-page {
        grid-template-columns: 1fr;
        padding: 40px 0 70px;
    }

    .signup-left {
        text-align: center;
    }

    .signup-logo {
        justify-content: center;
    }

    .signup-left>p {
        margin-left: auto;
        margin-right: auto;
    }

    .signup-card {
        max-width: 620px;
        width: 100%;
        margin: 0 auto;
        position: static;
    }

    .hero-visual {
        min-height: 320px;
    }

    .orbit-one {
        width: 380px;
        height: 380px;
    }

    .orbit-two {
        width: 460px;
        height: 460px;
    }

    .footer {
        width: calc(100% - 28px);
    }
}

@media (max-width: 768px) {
    .signup-page {
        width: calc(100% - 28px);
        padding: 28px 0 50px;
        gap: 30px;
    }

    .signup-logo {
        font-size: 19px;
        margin-bottom: 26px;
    }

    .signup-badge {
        font-size: 11.5px;
        line-height: 1.4;
    }

    .signup-left h1 {
        font-size: clamp(36px, 11vw, 48px);
        letter-spacing: -1.4px;
    }

    .signup-left>p {
        font-size: 16px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .trust-stats {
        grid-template-columns: 1fr;
    }

    .signup-card {
        padding: 30px 22px;
        border-radius: 30px;
    }

    .form-header h2 {
        font-size: 30px;
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-card img {
        height: 240px;
    }

    .orbit-one {
        width: 300px;
        height: 300px;
    }

    .orbit-two {
        width: 360px;
        height: 360px;
    }

    .footer {
        padding: 28px 20px 18px;
    }

    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .signup-page {
        width: calc(100% - 20px);
    }

    .signup-card {
        padding: 28px 18px;
        border-radius: 26px;
    }

    .input-box {
        height: 52px;
        border-radius: 15px;
    }

    .signup-btn,
    .google-btn {
        min-height: 52px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }
}

/* =========================
   FORM MESSAGE
========================= */

.form-message {
    width: 100%;
    display: none;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    border: 1px solid transparent;
    animation: fadeInMessage 0.25s ease;
}

.error-message {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.08);
}

.success-message {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
    box-shadow: 0 8px 20px rgba(22, 101, 52, 0.08);
}

/* =========================
   FIELD ERRORS
========================= */

.field-error {
    display: block;
    min-height: 18px;
    margin-top: 6px;
    padding-left: 4px;
    color: #dc2626;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.2px;
}

.input-box.error {
    border-color: #ef4444;
    background: #fff5f5;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.input-box.error i {
    color: #dc2626;
}

#termsError {
    margin-top: -12px;
    margin-bottom: 14px;
    padding-left: 2px;
}

/* =========================
   BUTTON DISABLED
========================= */

.signup-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

/* =========================
   MESSAGE ANIMATION
========================= */

@keyframes fadeInMessage {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   VERIFY MODAL
========================= */

.verify-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(14px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999;
}

.verify-modal.active {
    display: flex;
}

.verify-modal-box {
    width: min(460px, 100%);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 34px;
    padding: 38px 30px;
    text-align: center;
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.28);
    animation: verifyPop 0.35s ease;
    position: relative;
    overflow: hidden;
}

.verify-modal-box::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -90px;
    top: -90px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
}

.verify-modal-box::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    left: -80px;
    bottom: -80px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.12);
}

.verify-icon {
    width: 86px;
    height: 86px;
    margin: 0 auto 20px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 38px;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.32);
    position: relative;
    z-index: 2;
}

.verify-modal-box h2 {
    color: var(--dark);
    font-size: 30px;
    letter-spacing: -1px;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

.verify-modal-box p {
    color: var(--muted);
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
}

#verifyEmailText {
    display: inline-block;
    color: var(--primary);
    background: var(--soft-blue);
    border: 1px solid rgba(37, 99, 235, 0.16);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px;
    margin: 6px 0 12px;
    word-break: break-word;
    position: relative;
    z-index: 2;
}

.verify-small {
    font-size: 13.5px !important;
}

.verify-btn {
    width: 100%;
    min-height: 54px;
    margin-top: 12px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: var(--white);
    font-size: 15px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    z-index: 2;
}

.verify-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 45px rgba(37, 99, 235, 0.38);
}

@keyframes verifyPop {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
