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

:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #eff6ff;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --white: #ffffff;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: #f8fbff;
    min-height: 100vh;
    overflow-x: hidden;
}


/* =========================
   BACKGROUND
========================= */

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}

.blob-one {
    width: 500px;
    height: 500px;
    background: #bfdbfe;
    top: -200px;
    left: -150px;
}

.blob-two {
    width: 450px;
    height: 450px;
    background: #dbeafe;
    right: -150px;
    bottom: -150px;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    height: 78px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-size: 21px;
    font-weight: 800;
}

.logo-icon {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(
        135deg,
        #2563eb,
        #60a5fa
    );
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}

.login-text {
    font-size: 14px;
    color: var(--muted);
}

.login-text a,
.login-bottom a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.login-text a:hover,
.login-bottom a:hover {
    text-decoration: underline;
}


/* =========================
   MAIN
========================= */

.signup-container {
    width: min(1150px, 92%);
    margin: 45px auto 70px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}


/* =========================
   SIGNUP CARD
========================= */

.signup-card {
    width: 100%;
    max-width: 500px;
    margin: auto;

    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;

    padding: 38px;

    box-shadow:
        0 25px 60px rgba(15, 23, 42, 0.08);

    animation: cardAppear 0.6s ease;
}

.signup-header {
    margin-bottom: 28px;
}

.signup-header h1 {
    font-size: 30px;
    letter-spacing: -0.8px;
    margin-bottom: 9px;
}

.signup-header p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.mobile-logo {
    display: none;
}

@keyframes cardAppear {
    from {
        opacity: 0;

        transform:
            translateY(15px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}

/* =========================
   PROFILE UPLOAD
========================= */

.profile-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 27px;
}

.avatar-preview {
    width: 74px;
    height: 74px;

    flex-shrink: 0;

    border-radius: 50%;
    background: var(--blue-light);

    border: 2px dashed #93c5fd;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    color: var(--blue);
    font-size: 28px;
    font-weight: 400;
}

.avatar-preview img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.upload-button {
    width: fit-content;

    padding: 9px 14px;

    border-radius: 9px;

    background: #eff6ff;
    color: var(--blue);

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}

.upload-button:hover {
    background: #dbeafe;
}

#profilePic {
    display: none;
}

.upload-info p {
    color: #9ca3af;
    font-size: 11px;
}


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

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    height: 47px;

    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: white;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.form-group input:focus {
    border-color: #60a5fa;

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
    color: #a1a1aa;
}


/* =========================
   USERNAME
========================= */

.username-input {
    display: flex;
    align-items: center;

    height: 47px;

    border: 1px solid var(--border);
    border-radius: 10px;

    background: white;

    overflow: hidden;

    transition: 0.2s;
}

.username-input:focus-within {
    border-color: #60a5fa;

    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.1);
}

.username-input span {
    padding-left: 14px;

    color: #9ca3af;

    font-size: 13px;
    white-space: nowrap;
}

.username-input input {
    height: 100%;

    border: none;
    box-shadow: none;

    padding-left: 3px;
}

.username-input input:focus {
    box-shadow: none;
}

.input-message {
    margin-top: 6px;

    color: #9ca3af;
    font-size: 11px;
}


/* =========================
   PASSWORD
========================= */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 60px;
}

.show-password {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    border: none;
    background: none;

    color: var(--blue);

    font-family: inherit;
    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}

.password-strength {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 7px;
}

.strength-bar {
    width: 75px;
    height: 4px;

    background: #e5e7eb;

    border-radius: 10px;

    overflow: hidden;
}

#strengthFill {
    display: block;

    width: 0%;
    height: 100%;

    border-radius: 10px;

    transition: width 0.25s;
}

#strengthText {
    color: #9ca3af;
    font-size: 10px;
}


/* =========================
   TERMS
========================= */

.terms {
    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin: 22px 0;

    color: var(--muted);

    font-size: 11px;
    line-height: 1.5;

    cursor: pointer;
}

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

.terms a {
    color: var(--blue);
    text-decoration: none;
}


/* =========================
   SIGNUP BUTTON
========================= */

.signup-button {
    width: 100%;
    height: 50px;

    border: none;
    border-radius: 11px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #3b82f6
    );

    color: white;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.25);

    transition:
        transform 0.2s,
        box-shadow 0.2s;
}

.signup-button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(37, 99, 235, 0.3);
}

.signup-button:active {
    transform: translateY(0);
}

.arrow {
    font-size: 18px;
}


/* =========================
   DIVIDER
========================= */

.divider {
    display: flex;
    align-items: center;
    gap: 14px;

    margin: 24px 0;
}

.divider::before,
.divider::after {
    content: "";

    flex: 1;

    height: 1px;

    background: var(--border);
}

.divider span {
    color: #9ca3af;
    font-size: 11px;
}

.login-bottom {
    text-align: center;

    color: var(--muted);

    font-size: 12px;
}


/* =========================
   PREVIEW
========================= */

.preview-section {
    display: flex;
    justify-content: center;
    animation: cardAppear 0.6s ease;
}

.preview-content {
    position: relative;

    text-align: center;
}

.preview-label {
    display: inline-block;

    margin-bottom: 13px;

    color: var(--blue);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2px;
}

.preview-content h2 {
    font-size: 39px;
    line-height: 1.1;
    letter-spacing: -1.5px;

    margin-bottom: 15px;
}

.preview-content h2 span {
    color: var(--blue);
}

.preview-content > p {
    max-width: 400px;

    margin: auto;

    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}
/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .signup-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .preview-section {
        display: none;
    }

    .signup-card {
        max-width: 550px;
    }
}


@media (max-width: 600px) {

    .navbar {
        height: 68px;
        padding: 0 20px;
    }

    .login-text {
        font-size: 12px;
    }

    .navbar .logo {
        font-size: 18px;
    }

    .signup-container {
        width: 94%;
        margin: 25px auto 50px;
    }

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

    .signup-header h1 {
        font-size: 26px;
    }

    .profile-upload {
        margin-bottom: 23px;
    }

    .avatar-preview {
        width: 65px;
        height: 65px;
    }
}

/* =========================
   OTP VERIFICATION
========================= */

.otp-section {
    width: 100%;
    text-align: center;
    animation: otpFadeIn 0.4s ease;
}

@keyframes otpFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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


/* OTP Icon */

.otp-icon {
    width: 64px;
    height: 64px;

    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #eff6ff;
    color: #2563eb;

    font-size: 28px;

    box-shadow:
        0 8px 25px rgba(37, 99, 235, 0.12);
}


/* Heading */

.otp-section h2 {
    margin: 0 0 10px;

    color: #111827;

    font-size: 26px;
    font-weight: 800;

    letter-spacing: -0.5px;
}


/* Description */

.otp-section > p {
    margin: 0 auto 28px;

    max-width: 380px;

    color: #6b7280;

    font-size: 14px;
    line-height: 1.6;
}

.otp-section > p strong {
    color: #111827;
    font-weight: 600;
}


/* OTP Inputs */

.otp-inputs {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 10px;

    margin: 0 auto 24px;
}

.otp-input {
    width: 48px;
    height: 56px;

    padding: 0;

    border: 1.5px solid #dbe3ef;
    border-radius: 12px;

    background: #ffffff;

    color: #111827;

    font-size: 22px;
    font-weight: 700;

    text-align: center;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.otp-input:hover {
    border-color: #93c5fd;
}

.otp-input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.10);

    transform: translateY(-2px);
}


/* Verify Button */

#verifyOtpBtn {
    width: 100%;

    min-height: 52px;

    border: none;
    border-radius: 12px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #1d4ed8
    );

    color: #ffffff;

    font-family: inherit;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(37, 99, 235, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#verifyOtpBtn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(37, 99, 235, 0.28);
}

#verifyOtpBtn:active {
    transform: translateY(0);
}


/* Resend Button */

.resend-btn {
    width: 100%;

    margin-top: 12px;

    padding: 12px;

    border: none;

    background: transparent;

    color: #2563eb;

    font-family: inherit;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.resend-btn:hover {
    color: #1d4ed8;

    background: #eff6ff;

    border-radius: 8px;
}


/* OTP Message */

#otpMessage {
    min-height: 20px;

    margin-top: 14px !important;
    margin-bottom: 0 !important;

    font-size: 13px;

    color: #ef4444;

    line-height: 1.5;
}


/* =========================
   OTP RESPONSIVE
========================= */

@media (max-width: 480px) {

    .otp-icon {
        width: 56px;
        height: 56px;

        font-size: 24px;

        margin-bottom: 16px;
    }

    .otp-section h2 {
        font-size: 23px;
    }

    .otp-section > p {
        font-size: 13px;
        padding: 0 10px;
    }

    .otp-inputs {
        gap: 7px;
    }

    .otp-input {
        width: 42px;
        height: 50px;

        font-size: 20px;

        border-radius: 10px;
    }
}


@media (max-width: 360px) {

    .otp-inputs {
        gap: 5px;
    }

    .otp-input {
        width: 38px;
        height: 46px;

        font-size: 18px;
    }
}