* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 700px;
    margin: 0 auto;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 0.6s ease;
}

.logo-container img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.4));
}

.logo-container h1 {
    margin-top: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px var(--shadow);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
    padding: 0 2rem;
}

.progress-line {
    position: absolute;
    top: 22px;
    left: 3.5rem;
    right: 3.5rem;
    height: 3px;
    background: var(--border);
    z-index: 0;
    border-radius: 2px;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-circle.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.step-circle.completed {
    background: linear-gradient(135deg, var(--secondary), #34d399);
    color: white;
    border-color: var(--secondary);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.step-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
}

.step-title.active {
    color: var(--primary);
    font-weight: 600;
}

/* Form Steps */
.step {
    display: none;
}

.step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

h2 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    text-align: center;
}

/* Form Controls */
.row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control, .form-select {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.875rem 1rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:hover, .form-select:hover {
    border-color: rgba(37, 99, 235, 0.5);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 0;
}

.input-group .form-control {
    border-radius: 12px 0 0 12px;
    flex: 1;
}

.input-group .btn-outline-secondary {
    border-radius: 0 12px 12px 0;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid var(--border);
    border-left: none;
    color: var(--primary);
    padding: 0 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.input-group .btn-outline-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Validation Styles */
.is-invalid {
    border-color: var(--danger) !important;
    background: rgba(239, 68, 68, 0.05);
}

.invalid-feedback {
    display: none;
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    padding: 0.5rem;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--danger);
}

.is-invalid ~ .invalid-feedback {
    display: block;
}

/* Alert */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid;
    animation: slideDown 0.3s ease;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: #fca5a5;
}

/* Buttons */
.btn {
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(148, 163, 184, 0.1);
    border: 2px solid var(--border);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.w-100 {
    width: 100%;
}

.w-50 {
    width: 50%;
}

.d-flex {
    display: flex;
}

.gap-3 {
    gap: 1rem;
}

/* Footer */
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.login-link p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.login-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-link a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .row {
        grid-template-columns: 1fr;
    }

    .progress-steps {
        padding: 0 1rem;
    }

    .progress-line {
        left: 2.5rem;
        right: 2.5rem;
    }

    .step-title {
        font-size: 0.75rem;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}
