/* ============================================
   SIGNUP PAGE STYLES
   ============================================ */
.signup-section {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.signup-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--primary-color);
    border-color: var(--gold-color);
    border-width: 4px;
    color: white;
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.3);
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: var(--success-color);
    border-color: transparent;
    color: white;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.progress-step.active .step-label {
    color: var(--primary-color);
}

.progress-line {
    width: 100px;
    height: 3px;
    background: var(--border-color);
    margin: 0 10px;
}

/* Signup Card */
.signup-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--shadow-xl);
}

.signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.signup-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark-color);
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.form-row:has(> .form-group:nth-child(2)) {
    grid-template-columns: 1fr 1fr;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    color: var(--dark-color);
}

.required {
    color: var(--error-color);
}

/* Color Picker */
.color-picker-wrapper {
    display: flex;
    gap: 15px;
    align-items: center;
}

.color-picker-wrapper input[type="color"] {
    width: 80px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
}

.color-picker-wrapper input[type="text"] {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Nunito Sans', monospace;
    font-size: 1rem;
    background: var(--light-color);
}

/* Color Preview */
.color-preview {
    background: var(--light-color);
    padding: 25px;
    border-radius: 12px;
}

.preview-label {
    font-weight: 600;
    margin-bottom: 15px;
    font-family: 'Nunito', sans-serif;
}

.preview-box {
    display: flex;
    gap: 15px;
}

.preview-primary,
.preview-secondary {
    flex: 1;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    font-weight: 700;
    color: white;
    font-family: 'Nunito', sans-serif;
    transition: all 0.3s ease;
}

.preview-primary {
    background-color: #6366f1;
}

.preview-secondary {
    background-color: #8b5cf6;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
}

.file-upload-display {
    border: 3px dashed var(--border-color);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light-color);
}

.file-upload-display:hover {
    border-color: #F4B400;
    background: white;
    box-shadow: 0 4px 15px rgba(244, 180, 0, 0.1);
}

.file-upload-display svg {
    width: 60px;
    height: 60px;
    color: var(--text-light);
    margin: 0 auto 15px;
}

.file-upload-display p {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.file-upload-hint {
    font-size: 0.9rem;
    color: var(--text-light);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-display.has-file {
    border-color: var(--success-color);
    background: #f0fdf4;
}

.file-upload-display.has-file svg {
    color: var(--success-color);
}

.file-preview-image {
    max-width: 200px;
    max-height: 200px;
    margin: 0 auto 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

/* Subdomain Input */
.subdomain-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.subdomain-input-wrapper:focus-within {
    border-color: #F4B400;
    box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.15);
}

.subdomain-input-wrapper input {
    flex: 1;
    padding: 15px;
    border: none;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
}

.subdomain-input-wrapper input:focus {
    outline: none;
}

.subdomain-suffix {
    padding: 15px;
    background: var(--light-color);
    color: var(--text-light);
    font-weight: 600;
    white-space: nowrap;
}

.subdomain-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-light);
}

.subdomain-status {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 6px;
    font-weight: 600;
    display: none;
}

.subdomain-status.checking {
    display: block;
    background: #fef3c7;
    color: #92400e;
}

.subdomain-status.available {
    display: block;
    background: #dcfce7;
    color: #166534;
}

.subdomain-status.unavailable {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: #F4B400;
}

.toggle-password svg {
    width: 22px;
    height: 22px;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.password-strength.active {
    display: block;
}

.password-strength::after {
    content: '';
    display: block;
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.password-strength.weak::after {
    width: 33%;
    background: var(--error-color);
}

.password-strength.medium::after {
    width: 66%;
    background: var(--warning-color);
}

.password-strength.strong::after {
    width: 100%;
    background: var(--success-color);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label a {
    color: #F4B400;
    text-decoration: underline;
    font-weight: 600;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    justify-content: flex-end;
}

.form-actions .btn {
    min-width: 150px;
}

/* Submit Button */
#submitBtn {
    position: relative;
}

#submitBtn.loading {
    pointer-events: none;
    opacity: 0.7;
}

#submitBtn.loading .btn-text {
    visibility: hidden;
}

#submitBtn.loading .btn-loader {
    display: block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    width: 24px;
    height: 24px;
    animation: rotate 1s linear infinite;
}

.spinner circle {
    stroke: white;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Success Message */
.success-message {
    background: white;
    border-radius: 20px;
    padding: 60px;
    box-shadow: var(--shadow-xl);
    text-align: center;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    animation: scaleIn 0.5s ease;
    border: 5px solid var(--gold-color);
    box-shadow: 0 6px 20px rgba(244, 180, 0, 0.3);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-icon svg {
    width: 60px;
    height: 60px;
    color: white;
}

.success-message h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.success-message p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.subdomain-link {
    background: var(--light-color);
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.subdomain-link strong {
    color: #F4B400;
    font-size: 1.2rem;
    font-weight: 700;
}

.email-notice {
    font-size: 0.95rem;
    color: var(--text-light);
    font-style: italic;
}

.success-actions {
    margin-top: 30px;
}

/* Footer */
.footer-simple {
    background: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-simple p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-simple a {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 10px;
}

.footer-simple a:hover {
    color: white;
    text-decoration: underline;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-actions p {
    margin: 0;
    color: var(--text-color);
}

.login-link {
    color: #F4B400;
    font-weight: 600;
}

.login-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .signup-card {
        padding: 30px 20px;
    }

    .signup-header h1 {
        font-size: 2rem;
    }

    .step-title {
        font-size: 1.5rem;
    }

    .form-row:has(> .form-group:nth-child(2)) {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        flex-direction: column;
        gap: 20px;
    }

    .progress-line {
        width: 3px;
        height: 50px;
        margin: 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .preview-box {
        flex-direction: column;
    }

    .success-message {
        padding: 40px 20px;
    }

    .success-message h2 {
        font-size: 2rem;
    }
}
