﻿:root {
    --primary-color: #2563eb;
    --success-color: #059669;
    --warning-color: #d97706;
    --danger-color: #dc2626;
    --info-color: #0891b2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--gray-50) 0%, #e0f2fe 100%);
    min-height: 100vh;
    color: var(--gray-800);
}

.signup-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.signup-header {
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

    .logo i {
        font-size: 2.5rem;
        color: #fbbf24;
    }

.header-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.header-text p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}

/* Main Content */
.signup-content {
    flex: 1;
    padding: 3rem 0;
}

.signup-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

/* Progress Indicator */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    background: white;
    padding: 0 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 3px solid var(--gray-200);
}

.step-label {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 600;
    text-align: center;
    transition: color 0.3s ease;
}

.progress-step.active .step-number {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.progress-step.active .step-label {
    color: var(--primary-color);
}

.progress-step.completed .step-number {
    background: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.progress-step.completed .step-label {
    color: var(--success-color);
}

.progress-line {
    flex: 1;
    height: 3px;
    background: var(--gray-200);
    margin: 0 -1rem;
    position: relative;
    z-index: 1;
}

    .progress-line.completed {
        background: var(--success-color);
    }

/* Form Steps */
.form-step {
    display: none;
}

    .form-step.active {
        display: block;
        animation: slideIn 0.4s ease-out;
    }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .step-header h3 {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--gray-800);
        margin-bottom: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
    }

        .step-header h3 i {
            color: var(--primary-color);
        }

    .step-header p {
        color: var(--gray-600);
        margin: 0;
        font-size: 1rem;
    }

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.required {
    color: var(--danger-color);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: white;
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .form-control.is-invalid {
        border-color: var(--danger-color);
    }

    .form-control.is-valid {
        border-color: var(--success-color);
    }

.form-text {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

    .invalid-feedback.show {
        display: block;
    }

/* Role Selection */
.role-selection {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.role-option {
    position: relative;
}

    .role-option input[type="checkbox"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
    }

.role-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

    .role-label:hover {
        border-color: var(--primary-color);
        background: #eff6ff;
    }

.role-option input[type="checkbox"]:checked + .role-label {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.role-option input[type="checkbox"]:disabled + .role-label {
    background: var(--gray-50);
    border-color: var(--gray-300);
    cursor: not-allowed;
    opacity: 0.7;
}

.role-icon {
    width: 50px;
    height: 50px;
    border-radius: 0.75rem;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.role-content {
    flex: 1;
}

.role-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.role-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* Form Check */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 0.25rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

    .form-check-input:checked {
        background-color: var(--primary-color);
        border-color: var(--primary-color);
    }

.form-check-label {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.4;
}

    .form-check-label a {
        color: var(--primary-color);
        text-decoration: none;
    }

        .form-check-label a:hover {
            text-decoration: underline;
        }

/* Buttons */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

    .btn-primary:hover {
        background: #1e40af;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

.btn-success {
    background: var(--success-color);
    color: white;
}

    .btn-success:hover {
        background: #047857;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    }

.btn-outline-secondary {
    background: transparent;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
}

    .btn-outline-secondary:hover {
        background: var(--gray-100);
        border-color: var(--gray-400);
    }

.submit-btn {
    position: relative;
}

    .submit-btn:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        pointer-events: none;
    }

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.5rem;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    color: var(--gray-700);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 2rem;
    padding: 1rem;
}

    .login-link p {
        color: var(--gray-600);
        margin: 0;
    }

    .login-link a {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

/* Footer */
.signup-footer {
    background: var(--gray-100);
    border-top: 1px solid var(--gray-200);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

    .footer-links a {
        color: var(--gray-600);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: var(--primary-color);
        }

.footer-text p {
    color: var(--gray-500);
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .signup-header {
        padding: 1.5rem 0;
    }

    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .header-text h1 {
        font-size: 2rem;
    }

    .signup-content {
        padding: 2rem 0;
    }

    .signup-card {
        padding: 1.5rem;
        margin: 0 1rem;
        border
