
:root {
    --primary-gradient: linear-gradient(135deg, #1B578E 0%, #1B578E 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 2rem 0;
}

/* Animated Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Register Container */
.register-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.register-left {
    background: var(--primary-gradient);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.register-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(255,255,255,0.05) 10px,
            rgba(255,255,255,0.05) 20px
    );
    animation: move 20s linear infinite;
}

@keyframes move {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.register-left h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.register-left p {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.register-right {
    padding: 3rem;
}

.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control, .form-select {
    background: rgba(248, 249, 250, 0.8);
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.2rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: white;
    border-color: #1B578E;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: #495057;
}

.btn-register {
    background: var(--primary-gradient);
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-register:hover::before {
    left: 100%;
    color: white;
}

.btn-register:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white;
}

.back-home {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
}

.back-home a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.back-home a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.login-link {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    border-radius: 15px;
}

.login-link a {
    color: #1B578E;
    text-decoration: none;
    font-weight: 600;
}

.login-link a:hover {
    text-decoration: underline;
}

.terms-conditions {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.terms-conditions h6 {
    color: #856404;
    margin-bottom: 0.5rem;
}

.terms-conditions p {
    color: #856404;
    font-size: 0.9rem;
    margin: 0;
}

.terms-conditions a {
    color: #1B578E;
    text-decoration: none;
    font-weight: 600;
}

.terms-conditions a:hover {
    text-decoration: underline;
}

/* Form Validation Styles */
.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
    animation: shake 0.5s ease;
}

.form-control.is-valid, .form-select.is-valid {
    border-color: #28a745;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.password-strength {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.strength-bar {
    height: 5px;
    border-radius: 3px;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

.strength-weak { background: #dc3545; width: 33%; }
.strength-medium { background: #ffc107; width: 66%; }
.strength-strong { background: #28a745; width: 100%; }

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 2px solid white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.progress-bar-container {
    margin-bottom: 2rem;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background: #e9ecef;
}

.progress-bar {
    background: var(--primary-gradient);
    border-radius: 10px;
    transition: width 0.6s ease;
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.btn-step {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-prev {
    background: #6c757d;
    color: white;
}
.btn-prev:hover {
    transform: translateY(-2px);
    background: #6c757d;
}

.btn-next {
    background: var(--primary-gradient);
    color: white;
}
.btn-next:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-step:hover {
    transform: translateY(-2px);
    color: white;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafbfc;
}

.file-upload-area:hover {
    border-color: var(--arcep-blue);
    background: var(--arcep-blue-ultra-light);
}

.file-upload-area.dragover {
    border-color: var(--arcep-blue);
    background: var(--arcep-blue-ultra-light);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 3rem;
    color: var(--arcep-blue);
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: #6b7280;
    font-size: 0.9rem;
}

.file-list {
    margin-top: 1.5rem;
}

.file-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-info {
    display: flex;
    align-items: center;
}

.file-icon {
    color: var(--arcep-blue);
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.file-details h6 {
    margin: 0;
    font-weight: 600;
    color: #374151;
}

.file-details small {
    color: #6b7280;
}

.file-remove {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.file-remove:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .register-left {
        padding: 2rem 1.5rem;
    }

    .register-right {
        padding: 2rem 1.5rem;
    }

    .register-left h2 {
        font-size: 2rem;
    }

    body {
        padding: 1rem 0;
    }
}
