* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --dark: #0f172a;
    --text: #1e293b;
    --muted: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --soft-blue: #eff6ff;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --shadow-small: 0 12px 35px rgba(15, 23, 42, 0.09);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", Arial, sans-serif;
    background: var(--light);
    color: var(--text);
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    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(245, 158, 11, 0.08), transparent 42%);
    z-index: -3;
}

.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);
}

.signup-bg::after {
    content: "";
    position: absolute;
    bottom: -190px;
    left: -150px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(37, 99, 235, 0.13));
    filter: blur(6px);
}

a {
    text-decoration: none;
}

button,
a,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

/* PAGE */
.signup-page {
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 50px 0;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 50px;
}

/* LEFT CONTENT */
.signup-left {
    position: relative;
    padding: 30px 0;
}

.signup-logo {
    display: inline-flex;
    align-items: center;
    color: var(--dark);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.6px;
    margin-bottom: 34px;
}

.signup-logo::first-letter {
    color: var(--primary);
}

.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(--accent);
}

.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 h1::selection,
.signup-left p::selection {
    background: rgba(37, 99, 235, 0.18);
}

.signup-left p {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* FEATURES */
.signup-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 34px 0;
}

.signup-features div {
    min-height: 72px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 13px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
    transition: 0.25s ease;
}

.signup-features div:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-small);
    border-color: rgba(37, 99, 235, 0.25);
}

.signup-features 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;
}

.signup-features span {
    color: var(--text);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.45;
}

/* STATS */
.signup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 30px;
}

.signup-stats div {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px 16px;
    box-shadow: var(--shadow-small);
}

.signup-stats h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 5px;
}

.signup-stats p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

/* FORM CARD */
.signup-card {
    position: relative;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 38px;
    padding: 42px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.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: 18px;
}

.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: 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;
}

.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;
}

/* 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: 0.25s ease;
}

.signup-btn {
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.28);
}

.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;
}

.signin-text a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 1050px) {
    .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;
    }
}

@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;
    }

    .signup-features {
        grid-template-columns: 1fr;
    }

    .signup-stats {
        grid-template-columns: 1fr;
    }

    .signup-card {
        padding: 30px 22px;
        border-radius: 30px;
    }

    .form-header h2 {
        font-size: 30px;
    }
}

@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;
    }
}
/* 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 TOP BOX */
.error-message {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.08);
}

/* SUCCESS TOP BOX */
.success-message {
    color: #166534;
    background: #f0fdf4;
    border-color: #bbf7d0;
    box-shadow: 0 8px 20px rgba(22, 101, 52, 0.08);
}

/* SMALL FIELD ERROR */
.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 ERROR STATE */
.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;
}

/* TERMS ERROR */
#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 {
    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(--secondary));
    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(--secondary));
    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: 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);
    }
}