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

body {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
    background: #F8FAFC;
}

/* Navigation Bar */
.top-nav {
    background: #1B0F4E;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, #523BFA 0%, #00C3D7 100%) 1;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-mascot {
    display: flex;
    align-items: center;
}

.mascot-img {
    height: 48px;
    width: auto;
}

/* Gradient background for top half */
.gradient-background {
    position: absolute;
    top: 60px; /* Start below the nav bar */
    left: 0;
    right: 0;
    height: calc(50vh - 30px);
    background: linear-gradient(135deg, #523BFA 0%, #00C3D7 100%);
    z-index: 0;
}

/* Main container */
.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 80px 20px 20px; /* Add top padding for fixed nav */
}

/* Header section - removed */

.container {
    width: 100%;
    max-width: 400px;
}

.form-wrapper {
    background: white;
    border-radius: 16px;
    border: 4px solid #00C3D7;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    padding: 32px 24px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #523BFA, #00C3D7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.title {
    font-size: 24px;
    font-weight: 600;
    color: #523BFA;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.5;
    font-weight: 400;
}

.signup-form {
    margin-bottom: 32px;
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1B0F4E;
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}

.form-group label .optional {
    font-weight: 400;
    color: #6B7280;
    font-size: 13px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: #F3F4F6;
    transition: all 0.3s ease;
    font-family: 'Montserrat', inherit;
    color: #1B0F4E;
}

.form-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(82, 59, 250, 0.1);
    background: white;
}

.form-group input.error {
    background: #FEF2F2;
    box-shadow: 0 0 0 1px #EF4444;
}

.error-message {
    display: block;
    color: #EF4444;
    font-size: 13px;
    margin-top: 8px;
    height: 16px;
    font-weight: 400;
}

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: #523BFA;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: -0.2px;
}

.submit-btn:hover:not(:disabled) {
    background: #4631E8;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(82, 59, 250, 0.25);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
    background: #3F2AD1;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-text {
    transition: opacity 0.2s ease;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

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

.hidden {
    display: none !important;
}

.success-message {
    text-align: center;
    padding: 32px;
    animation: fadeIn 0.5s ease-out;
}

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

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #523BFA, #00C3D7);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    color: white;
    margin: 0 auto 24px;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.success-message h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1B0F4E;
    margin-bottom: 12px;
}

.success-message p {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.6;
}

.error-banner {
    background: #FEF2F2;
    color: #EF4444;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #FECACA;
}

/* Privacy and Terms links */
.footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
}

.footer a {
    color: #523BFA;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.footer a:hover {
    opacity: 0.8;
}

@media (max-width: 480px) {
    .nav-container {
        padding: 8px 16px;
    }

    .logo-img {
        height: 28px;
    }

    .mascot-img {
        height: 40px;
    }

    .main-container {
        padding-top: 70px;
    }

    .gradient-background {
        top: 50px;
        height: calc(50vh - 25px);
    }

    .form-wrapper {
        padding: 24px 20px;
        border-width: 3px;
    }

    .title {
        font-size: 22px;
    }

    .subtitle {
        font-size: 13px;
    }

    .form-group input, .submit-btn {
        font-size: 14px;
    }
}