/* Signup Page Styles */
.signup-page {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    min-height: 100vh;
}

.signup-section {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.signup-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signup-content {
    background: #1e293b;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

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

.signup-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 16px;
}

.signup-description {
    font-size: 1.1rem;
    color: #94a3b8;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input,
.form-select {
    padding: 16px 20px;
    border: 2px solid #475569;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #334155;
    color: #f1f5f9;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input.error,
.form-select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 8px;
    display: none;
}

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

/* Password Input */
.password-input {
    position: relative;
}

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

.password-toggle:hover {
    color: #374151;
}

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

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 8px;
}

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

.strength-fill.weak {
    width: 25%;
    background: #ef4444;
}

.strength-fill.fair {
    width: 50%;
    background: #f59e0b;
}

.strength-fill.good {
    width: 75%;
    background: #3b82f6;
}

.strength-fill.strong {
    width: 100%;
    background: #10b981;
}

.strength-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.strength-text.weak {
    color: #ef4444;
}

.strength-text.fair {
    color: #f59e0b;
}

.strength-text.good {
    color: #3b82f6;
}

.strength-text.strong {
    color: #10b981;
}

/* Checkbox Styles */
.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.5;
}

.checkbox-label .checkbox-text {
    flex: 1;
    min-width: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #6366f1;
    border-color: #6366f1;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Signup Button */
.signup-btn {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.signup-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.signup-btn.loading {
    color: transparent;
}

.signup-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Signup Footer */
.signup-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.signup-footer p {
    color: #6b7280;
}

.link {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

/* Benefits Section */
.signup-benefits {
    background: #1e293b;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
    height: fit-content;
}

.benefits-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 30px;
    text-align: center;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.benefit-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-item i {
    color: #10b981;
    font-size: 1.2rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.benefit-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    margin-bottom: 20px;
}

.success-icon {
    font-size: 3rem;
    color: #10b981;
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

.modal-body {
    margin-bottom: 30px;
}

.modal-body p {
    color: #6b7280;
    margin-bottom: 12px;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .signup-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .signup-benefits {
        order: -1;
    }
}

@media (max-width: 768px) {
    .signup-content,
    .signup-benefits {
        padding: 30px;
    }
    
    .signup-title {
        font-size: 2rem;
    }
    
    .signup-container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .signup-content,
    .signup-benefits {
        padding: 20px;
    }
    
    .signup-title {
        font-size: 1.75rem;
    }
    
    .form-input,
    .form-select {
        padding: 14px 16px;
    }
    
    .btn {
        padding: 14px 28px;
    }
}

/* Google Signup Button */
.btn-google {
    background: white;
    color: #333;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #c1c7cd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-google i {
    font-size: 1.2rem;
    color: #4285f4;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 30px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #334155;
}

.divider span {
    background: #1e293b;
    color: #94a3b8;
    padding: 0 20px;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Modal Styles */
.success-modal, .error-modal, .legal-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #1e293b;
    border-radius: 12px;
    max-width: 500px;
    margin: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid #334155;
}

.modal-header {
    background: #334155;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #475569;
}

.modal-header h3 {
    color: #f1f5f9;
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.close {
    color: #94a3b8;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.close:hover {
    color: #f1f5f9;
}

.modal-body {
    padding: 30px;
    text-align: center;
    color: #e2e8f0;
}

.success-icon, .error-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-icon {
    color: #10b981;
}

.error-icon {
    color: #ef4444;
}

.modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.email-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
}

.email-info p {
    margin: 0;
    color: #93c5fd;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-footer {
    padding: 20px 30px;
    background: #334155;
    border-top: 1px solid #475569;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #6366f1;
    color: white;
}

.btn-primary:hover {
    background: #4f46e5;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
    transform: translateY(-2px);
}

/* Legal Modal Specific Styles */
.legal-modal .modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.legal-modal .modal-body {
    text-align: left;
}

.legal-modal h4 {
    color: #f1f5f9;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.legal-modal h4:first-child {
    margin-top: 0;
}

.legal-modal ul {
    margin: 10px 0;
    padding-left: 20px;
}

.legal-modal li {
    margin: 5px 0;
    color: #cbd5e1;
}
