:root {
    --primary: #8A2BE2;
    --secondary: #00E5FF;
    --accent: #FF2E63;
    --dark: #1A1A2E;
    --light: #F0F2F5;
    --success: #23AF29;
    --error: #F44336;
    --card-radius: 16px;
    --input-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

body {
    background: var(--dark);
    color: var(--light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Auth Container */
.auth-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.auth-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--card-radius);
    padding: 40px;
}

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

.auth-header h1 {
    margin: 20px 0 10px;
    font-size: 2rem;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.7);
}

.auth-form {
    position: relative;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group {
    position: relative;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.input-group input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--input-radius);
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
}

.checkbox-container:hover .checkmark {
    background: rgba(255, 255, 255, 0.15);
}

.checkbox-container input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Button Styles */
.auth-button {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    border-radius: var(--input-radius);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Social Login */
.social-login {
    margin-top: 32px;
    text-align: center;
}

.social-login p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 16px;
}

.social-button {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--input-radius);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.social-button.google {
    background: #DB4437;
}

.social-button.github {
    background: #333;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.7);
}

.auth-footer a {
    color: var(--secondary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Subscription Plans */
.subscription-plans {
    margin: 32px 0;
}

.subscription-plans h3 {
    margin-bottom: 16px;
    text-align: center;
}

.plan-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.plan-card {
    position: relative;
    cursor: pointer;
}

.plan-card input {
    position: absolute;
    opacity: 0;
}

.plan-content {
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--card-radius);
    transition: all 0.3s ease;
}

.plan-card input:checked ~ .plan-content {
    border-color: var(--primary);
    background: rgba(138, 43, 226, 0.1);
}

.plan-card.recommended .plan-content {
    position: relative;
    overflow: hidden;
}

.plan-card.recommended .plan-content::before {
    content: 'Recommended';
    position: absolute;
    top: 12px;
    right: -30px;
    background: var(--accent);
    color: white;
    padding: 4px 40px;
    font-size: 12px;
    transform: rotate(45deg);
}

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

.plan-header h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}

.plan-features {
    list-style: none;
}

.plan-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.plan-features i {
    color: var(--success);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes colorPulse {
    0%, 100% {
        fill: var(--accent);
        filter: drop-shadow(0 0 8px var(--primary));
    }
    50% {
        fill: var(--primary);
        filter: drop-shadow(0 0 15px var(--secondary));
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .auth-box {
        padding: 24px;
    }

    .plan-options {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        flex-direction: column;
    }
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    left: 50px;
    right: 50px;
    top: 50%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%);
}

.step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(26, 26, 46, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    position: relative;
    z-index: 1;
    margin: 0 15px;
    color: rgba(255, 255, 255, 0.8);
}

.step.active {
    background: var(--dark);
    border-color: var(--primary);
    color: white;
}

.step.completed {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Add step content visibility */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

@media (max-width: 580px) {
    .step:not(:last-child) {
        margin-right: 40px;
    }
    
    .step:not(:last-child)::after {
        width: 40px;
    }
    
    .step {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* Step Content */
.step-content h2 {
    text-align: center;
    margin-bottom: 8px;
}

.step-description {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

/* Password Requirements */
.password-requirements {
    margin-top: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--input-radius);
}

.password-requirements p {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.password-requirements ul {
    list-style: none;
}

.password-requirements li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li i {
    font-size: 8px;
}

.password-requirements li.valid i {
    color: var(--success);
}

/* Interest Cards */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.interest-card {
    position: relative;
    cursor: pointer;
}

.interest-card input {
    position: absolute;
    opacity: 0;
}

.interest-content {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--card-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.interest-content i {
    font-size: 24px;
    color: var(--secondary);
}

.interest-card input:checked ~ .interest-content {
    background: rgba(138, 43, 226, 0.1);
    border-color: var(--primary);
}

/* Verification Code */
.verification-code {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 32px 0;
}

.code-input {
    width: 50px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--input-radius);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.code-input:focus {
    border-color: var(--primary);
    background: rgba(138, 43, 226, 0.1);
}

.resend-code {
    text-align: center;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.7);
}

.resend-button {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.resend-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.countdown {
    color: var(--accent);
    margin-left: 8px;
}

/* Step Buttons */
.step-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.step-buttons .auth-button {
    flex: 1;
}

.prev-step {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.prev-step:hover {
    background: rgba(0, 229, 255, 0.1);
}

/* Responsive Adjustments */
@media (max-width: 480px) {
    .verification-code {
        gap: 8px;
    }

    .code-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

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

/* Update the role-options styles */
.role-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 32px 0;
}

.role-card {
    position: relative;
    cursor: pointer;
    height: 100%; /* Ensure full height */
}

.role-card input {
    position: absolute;
    opacity: 0;
}

.role-content {
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--card-radius);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%; /* Ensure full height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px; /* Set minimum height */
}

.role-content i {
    font-size: 32px;
    color: var(--secondary);
    margin-bottom: 16px;
}

.role-content h3 {
    margin-bottom: 8px;
    color: var(--light);
}

.role-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.4;
}

.role-card input:checked ~ .role-content {
    background: rgba(138, 43, 226, 0.1);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Add button for the first step */
.role-options + .step-buttons {
    margin-top: 24px;
}

/* Responsive adjustment */
@media (max-width: 480px) {
    .role-options {
        grid-template-columns: 1fr;
    }
}