/* Modern Authentication Pages Styling */

:root {
    --primary-gradient: linear-gradient(135deg, #FF6B35 0%, #FFD23F 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --card-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
    --input-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --success-color: #10B981;
    --error-color: #EF4444;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --border-color: #E5E7EB;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Full Page Background */
.modern-auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #FF6B35 0%, #FFD23F 50%, #FF6B35 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Background Shapes */
.modern-auth-wrapper::before,
.modern-auth-wrapper::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 20s infinite ease-in-out;
}

.modern-auth-wrapper::before {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.modern-auth-wrapper::after {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -150px;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Registration Card */
.modern-register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

.modern-register-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

/* Logo and Header */
.register-logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--primary-gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.register-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* Form Groups */
.modern-form-group {
    margin-bottom: 24px;
    position: relative;
}

.modern-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modern Input Fields */
.modern-input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.modern-input:focus {
    background: white;
    border-color: #FF6B35;
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    transform: translateY(-2px);
}

.modern-input::placeholder {
    color: #9CA3AF;
}

/* Select Dropdown Specific Styling */
select.modern-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 50px;
}

select.modern-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23FF6B35' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Input Icons */
.input-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.modern-form-group:focus-within .input-icon {
    color: #FF6B35;
}

/* Password Strength Indicator */
.password-strength {
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

.password-strength-bar.weak { width: 33%; background: #EF4444; }
.password-strength-bar.medium { width: 66%; background: #F59E0B; }
.password-strength-bar.strong { width: 100%; background: #10B981; }

/* Submit Button */
.modern-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    margin-top: 32px;
}

.modern-submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modern-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.modern-submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.modern-submit-btn:active {
    transform: translateY(0);
}

/* Terms and Conditions Checkbox */
.modern-checkbox-group {
    display: flex;
    align-items: center;
    margin: 24px 0;
}

.modern-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    cursor: pointer;
    accent-color: #FF6B35;
}

.modern-checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.modern-checkbox-label a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
}

.modern-checkbox-label a:hover {
    text-decoration: underline;
}

/* Social Login Section */
.social-divider {
    text-align: center;
    margin: 32px 0;
    position: relative;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.social-divider span {
    background: white;
    padding: 0 16px;
    position: relative;
    color: var(--text-secondary);
    font-size: 14px;
}

.social-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.social-btn:hover {
    border-color: #FF6B35;
    background: #FFF7ED;
    transform: translateY(-2px);
}

/* Footer Links */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: #FF6B35;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: #E85D25;
    text-decoration: underline;
}

/* Validation Messages */
.modern-validation-error {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-validation-summary {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    color: var(--error-color);
}

/* Success State */
.success-message {
    background: #D1FAE5;
    border: 1px solid #A7F3D0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

/* Form Help Text */
.form-help-text {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-style: italic;
}

/* Real-time Validation Availability Indicators */
.store-availability,
.domain-availability {
    display: block;
    font-size: 13px;
    margin-top: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.store-availability.available,
.domain-availability.available {
    background: #D1FAE5;
    border: 1px solid #A7F3D0;
    color: var(--success-color);
}

.store-availability.available::before,
.domain-availability.available::before {
    content: '✓ ';
    font-weight: bold;
}

.store-availability.unavailable,
.domain-availability.unavailable {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: var(--error-color);
}

.store-availability.unavailable::before,
.domain-availability.unavailable::before {
    content: '✗ ';
    font-weight: bold;
}

/* Loading State */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Two Column Form Layout */
.modern-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Registration Steps */
.registration-step {
    margin-bottom: 32px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

/* Subscription Plans Grid */
.subscription-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.plan-card {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    display: block;
}

.plan-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.plan-card input[type="radio"]:checked ~ .plan-content {
    border-color: #FF6B35;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #FF6B35;
}

.plan-card:has(input[type="radio"]:checked) {
    border-color: #FF6B35;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 210, 63, 0.05) 100%);
}

.plan-recommended {
    border-color: #FF6B35;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-gradient);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.plan-price {
    font-size: 28px;
    font-weight: 700;
    color: #FF6B35;
    margin-bottom: 16px;
}

.plan-price span {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓';
    color: #10B981;
    font-weight: bold;
    margin-right: 8px;
}

/* Responsive Design */
@media (max-width: 640px) {
    .modern-register-card {
        padding: 32px 24px;
        margin: 16px;
    }

    .register-title {
        font-size: 24px;
    }

    .social-buttons {
        flex-direction: column;
    }

    .modern-form-row {
        grid-template-columns: 1fr;
    }

    .subscription-plans {
        grid-template-columns: 1fr;
    }
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: -1;
}

.progress-step:last-child::before {
    display: none;
}

.progress-step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-circle {
    background: var(--primary-gradient);
    border-color: #FF6B35;
    color: white;
}

.progress-step-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.progress-step.active .progress-step-label {
    color: var(--text-primary);
    font-weight: 600;
}