/* Sign Up Page Styles */

/* Hero Section */
.hero-section {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="signup-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(128,128,128,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23signup-pattern)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 500px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.text-highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-benefits li {
    padding: 8px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 24px;
}

.hero-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

/* Sign Up Form */
.signup-form-container {
    background: var(--background-primary);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    max-width: 500px;
    width: 100%;
}

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

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

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

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
}

.social-btn:hover {
    background: var(--background-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.social-btn .icon {
    font-size: 1.25rem;
}

.divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: var(--background-primary);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-secondary);
    color: var(--text-primary);
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

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

.password-strength {
    margin-top: 8px;
}

.strength-meter {
    height: 4px;
    background: var(--background-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all var(--transition-base);
}

.strength-fill.weak {
    width: 25%;
    background: var(--primary-color);
}

.strength-fill.fair {
    width: 50%;
    background: var(--text-secondary);
}

.strength-fill.good {
    width: 75%;
    background: var(--text-secondary);
}

.strength-fill.strong {
    width: 100%;
    background: var(--text-primary);
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.form-agreements {
    margin-bottom: 24px;
}

.agreement-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.agreement-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.agreement-text {
    color: var(--text-secondary);
}

.agreement-text a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.agreement-text a:hover {
    text-decoration: underline;
}

.signup-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: 24px;
}

.signup-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.form-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.form-footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.login-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-link:hover {
    text-decoration: underline;
}

/* Account Types Section */
.account-types {
    background: var(--background-secondary);
    padding: 80px 0;
}

.account-types-content {
    text-align: center;
    margin-bottom: 48px;
}

.account-types-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.account-types-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.account-card {
    background: var(--background-primary);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.account-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.account-card.recommended {
    border-color: var(--primary-color);
}

.account-card.recommended::before {
    content: 'Recommended';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--text-light);
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.account-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--background-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.account-card.recommended .account-icon {
    background: var(--primary-color);
    color: var(--text-light);
}

.account-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.account-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.account-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    text-align: left;
}

.account-features li {
    padding: 6px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.account-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.account-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-secondary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-base);
    display: inline-block;
}

.account-btn:hover {
    background: var(--background-primary);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.account-card.recommended .account-btn {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

.account-card.recommended .account-btn:hover {
    opacity: 0.9;
}

/* Features Comparison */
.features-comparison {
    background: var(--background-primary);
    padding: 80px 0;
}

.comparison-content {
    text-align: center;
    margin-bottom: 48px;
}

.comparison-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.comparison-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.comparison-table {
    background: var(--background-primary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.table-header {
    background: var(--background-secondary);
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.table-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
}

.table-header h3:first-child {
    text-align: left;
}

.table-row {
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.table-row:last-child {
    border-bottom: none;
}

.feature-name {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.feature-value {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.feature-check {
    color: var(--primary-color);
    font-weight: 600;
}

.feature-cross {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Loading States */
.signup-btn.loading {
    position: relative;
    color: transparent;
}

.signup-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid var(--text-light);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Form Validation */
.form-group.error input,
.form-group.error select {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.form-group.success input,
.form-group.success select {
    border-color: var(--text-secondary);
}

.form-error {
    color: var(--primary-color);
    font-size: 0.875rem;
    margin-top: 4px;
    display: none;
}

.form-group.error .form-error {
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .signup-form-container {
        max-width: 100%;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 12px;
        text-align: center;
    }
    
    .table-header h3:first-child,
    .feature-name {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .signup-form-container {
        padding: 32px 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .account-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .account-card {
        padding: 24px;
    }
    
    .account-types-content h2,
    .comparison-content h2 {
        font-size: 2rem;
    }
    
    .comparison-table {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .signup-form-container {
        padding: 24px 16px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .social-buttons {
        gap: 8px;
    }
    
    .agreement-item {
        align-items: flex-start;
        gap: 8px;
    }
    
    .table-header,
    .table-row {
        padding: 12px 16px;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Focus States */
.signup-form-container:focus-within {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px var(--primary-color);
}

/* Interactive Elements */
.social-btn.google:hover {
    border-color: var(--primary-color);
}

.social-btn.github:hover {
    border-color: var(--text-primary);
}

.social-btn.microsoft:hover {
    border-color: var(--primary-color);
}

/* Status Messages */
.status-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-message.success {
    background: var(--background-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.status-message.error {
    background: rgba(255, 0, 0, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.status-message.warning {
    background: var(--background-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Progress Indicators */
.signup-progress {
    width: 100%;
    height: 4px;
    background: var(--background-secondary);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 24px;
}

.signup-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .signup-form-container {
        border: 2px solid var(--text-primary);
    }
    
    .form-group input,
    .form-group select {
        border: 2px solid var(--text-primary);
    }
    
    .signup-btn {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .account-card,
    .signup-btn,
    .social-btn {
        transition: none;
    }
    
    .signup-btn.loading::after {
        animation: none;
    }
}