:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --success: #10b981;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
}

/* Scoped Page Container */
.signup-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    margin: 0;
    padding: 0;
}

.signup-page *,
.signup-page *::before,
.signup-page *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Left Side - Branding */
.signup-page .signup-branding {
    flex: 1;
    background: var(--dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.signup-page .signup-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 40%);
    pointer-events: none;
}

.signup-page .branding-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
    text-align: center;
    animation: signupFadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.signup-page .branding-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.signup-page .branding-logo-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.signup-page .branding-logo-icon svg {
    width: 32px;
    height: 32px;
    color: white;
}

.signup-page .branding-logo-text {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-page .branding-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.signup-page .branding-title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-page .branding-description {
    font-size: 18px;
    color: var(--gray-light);
    margin-bottom: 48px;
    line-height: 1.7;
}

/* Testimonial Card */
.signup-page .branding-testimonial {
    background: var(--dark-light);
    border-radius: 16px;
    padding: 24px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.signup-page .testimonial-stars {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 14px;
    letter-spacing: 2px;
}

.signup-page .testimonial-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.signup-page .testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.signup-page .testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.signup-page .testimonial-info {
    color: var(--white);
}

.signup-page .testimonial-name {
    font-weight: 600;
    font-size: 14px;
}

.signup-page .testimonial-role {
    font-size: 13px;
    color: var(--gray-light);
}

/* Stats */
.signup-page .branding-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
}

.signup-page .branding-stat {
    text-align: center;
}

.signup-page .branding-stat-value {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-page .branding-stat-label {
    font-size: 13px;
    color: var(--gray-light);
    margin-top: 4px;
}

/* Right Side - Form */
.signup-page .signup-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    background: var(--white);
    position: relative;
    overflow-y: auto;
}

.signup-page .signup-form-wrapper {
    width: 100%;
    max-width: 440px;
    animation: signupFadeInUp 0.6s ease forwards;
}

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

.signup-page .signup-header-mobile-logo {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.signup-page .signup-header-mobile-logo .branding-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.signup-page .signup-header-mobile-logo .branding-logo-icon svg {
    width: 24px;
    height: 24px;
}

.signup-page .signup-header-mobile-logo span {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.signup-page .signup-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

.signup-page .signup-subtitle {
    font-size: 16px;
    color: var(--gray);
}

.signup-page .signup-subtitle a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.signup-page .signup-subtitle a:hover {
    color: var(--primary-dark);
}

/* Form */
.signup-page .signup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.signup-page .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.signup-page .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.signup-page .form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.signup-page .form-label .optional {
    font-weight: 400;
    color: var(--gray-light);
    font-size: 13px;
}

.signup-page .form-input-wrapper {
    position: relative;
}

.signup-page .form-input {
    width: 100%;
    padding: 14px 16px;
    padding-left: 48px;
    border: 2px solid var(--light);
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--dark);
}

.signup-page .form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.signup-page .form-input::placeholder {
    color: var(--gray-light);
}

.signup-page .form-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-light);
    transition: color 0.3s ease;
    pointer-events: none;
}

.signup-page .form-input:focus ~ .form-input-icon,
.signup-page .form-input:not(:placeholder-shown) ~ .form-input-icon {
    color: var(--primary);
}

.signup-page .form-input-icon svg {
    width: 20px;
    height: 20px;
}

.signup-page .password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-light);
    cursor: pointer;
    padding: 4px;
    transition: color 0.3s ease;
}

.signup-page .password-toggle:hover {
    color: var(--primary);
}

.signup-page .password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Password Strength */
.signup-page .password-strength {
    margin-top: 8px;
}

.signup-page .password-strength-bar {
    height: 4px;
    background: var(--light);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.signup-page .password-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.signup-page .password-strength-fill.weak {
    width: 33%;
    background: var(--danger);
}

.signup-page .password-strength-fill.medium {
    width: 66%;
    background: var(--accent);
}

.signup-page .password-strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.signup-page .password-strength-text {
    font-size: 12px;
    color: var(--gray-light);
}

.signup-page .password-strength-text.weak {
    color: var(--danger);
}

.signup-page .password-strength-text.medium {
    color: var(--accent);
}

.signup-page .password-strength-text.strong {
    color: var(--success);
}

/* Terms Checkbox */
.signup-page .form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.signup-page .form-checkbox input {
    display: none;
}

.signup-page .form-checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.signup-page .form-checkbox input:checked + .form-checkbox-custom {
    background: var(--gradient);
    border-color: var(--primary);
}

.signup-page .form-checkbox-custom svg {
    width: 12px;
    height: 12px;
    color: white;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.signup-page .form-checkbox input:checked + .form-checkbox-custom svg {
    opacity: 1;
    transform: scale(1);
}

.signup-page .form-checkbox-label {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
}

.signup-page .form-checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.signup-page .form-checkbox-label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.signup-page .btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: var(--gradient);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
}

.signup-page .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.signup-page .btn-submit:active {
    transform: translateY(0);
}

.signup-page .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.signup-page .btn-submit svg {
    width: 20px;
    height: 20px;
}

/* Divider */
.signup-page .form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 4px 0;
}

.signup-page .form-divider-line {
    flex: 1;
    height: 1px;
    background: var(--light);
}

.signup-page .form-divider-text {
    font-size: 13px;
    color: var(--gray-light);
    font-weight: 500;
}

/* Social Buttons */
.signup-page .social-buttons {
    display: flex;
    gap: 12px;
}

.signup-page .btn-social {
    flex: 1;
    padding: 14px 20px;
    background: var(--white);
    border: 2px solid var(--light);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.signup-page .btn-social:hover {
    border-color: var(--primary-light);
    background: rgba(99, 102, 241, 0.02);
}

.signup-page .btn-social svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.signup-page .signup-footer {
    margin-top: 24px;
    text-align: center;
}

.signup-page .signup-footer p {
    font-size: 13px;
    color: var(--gray-light);
}

.signup-page .signup-footer a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.signup-page .signup-footer a:hover {
    color: var(--primary);
}

/* Error State */
.signup-page .form-input.error {
    border-color: var(--danger);
}

.signup-page .form-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.signup-page .form-error {
    font-size: 13px;
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.signup-page .form-error svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Form Errors Block */
.signup-page .form-errors {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
}

.signup-page .form-errors-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--danger);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.signup-page .form-errors-header svg {
    width: 18px;
    height: 18px;
}

.signup-page .form-errors-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signup-page .form-errors-list li {
    font-size: 13px;
    color: var(--danger);
    padding: 4px 0;
    padding-left: 26px;
    position: relative;
}

.signup-page .form-errors-list li::before {
    content: '•';
    position: absolute;
    left: 10px;
}

/* Success State */
.signup-page .form-input.success {
    border-color: var(--success);
}

/* Loading State */
.signup-page .btn-submit.loading {
    pointer-events: none;
}

.signup-page .btn-submit.loading .btn-text,
.signup-page .btn-submit.loading .btn-icon {
    opacity: 0;
}

.signup-page .btn-submit .spinner {
    position: absolute;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: signupSpin 0.8s linear infinite;
    display: none;
}

.signup-page .btn-submit.loading .spinner {
    display: block;
}

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

/* Plan Badge */
.signup-page .plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.signup-page .plan-badge svg {
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .signup-page .signup-branding {
        display: none;
    }

    .signup-page .signup-form-container {
        padding: 32px 24px;
    }

    .signup-page .signup-header-mobile-logo {
        display: flex;
    }
}

@media (max-width: 480px) {
    .signup-page .form-row {
        grid-template-columns: 1fr;
    }

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

    .signup-page .signup-title {
        font-size: 24px;
    }

    .signup-page .branding-stats {
        gap: 24px;
    }

    .signup-page .branding-stat-value {
        font-size: 24px;
    }
}

/* Animations */
@keyframes signupFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
