:root {
    --primary-color: #4285f4;
    --primary-dark: #3367d6;
    --success-color: #34a853;
    --warning-color: #fbbc05;
    --danger-color: #ea4335;
    --gray-light: #f8f9fa;
    --gray-medium: #e2e8f0;
    --gray-dark: #64748b;
    --transition: all 0.3s ease;
    
    /* Light mode variables */
    --card-bg: white;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.05);
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.12);
    --input-bg: white;
    --input-border: #e2e8f0;
    --input-focus-border: #4285f4;
    --input-placeholder: #94a3b8;
    --illustration-bg: #f8fafc;
    --progress-bg: #e2e8f0;
    --step-inactive: #cbd5e1;
    --step-active: #4285f4;
    --step-complete: #34a853;
}

/* Dark mode variables */
[data-bs-theme="dark"] {
    --card-bg: #1e293b;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.05);
    --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    --box-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.35);
    --input-bg: #0f172a;
    --input-border: #334155;
    --input-focus-border: #4285f4;
    --input-placeholder: #64748b;
    --illustration-bg: #0f172a;
    --progress-bg: #334155;
    --step-inactive: #475569;
    --step-active: #4285f4;
    --step-complete: #34a853;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-light);
    font-family: 'Poppins', sans-serif;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

[data-bs-theme="dark"] body {
    background-color: #0f172a;
}

.register-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    background-color: var(--card-bg);
    margin: 2rem;
    position: relative;
    min-height: 650px;
}

.register-illustration {
    flex: 1;
    background-color: var(--illustration-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.register-illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1), rgba(66, 133, 244, 0.2));
    z-index: 1;
}

.illustration-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.illustration-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(66, 133, 244, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.2);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(66, 133, 244, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
}

.illustration-icon i {
    font-size: 3.5rem;
    color: var(--primary-color);
}

.illustration-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    background: linear-gradient(135deg, #4285f4, #34a853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.illustration-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.network-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(66, 133, 244, 0.3);
}

.node::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(66, 133, 244, 0.1);
    animation: ripple 3s infinite;
}

@keyframes ripple {
    0% {
        width: 16px;
        height: 16px;
        opacity: 1;
    }
    100% {
        width: 50px;
        height: 50px;
        opacity: 0;
    }
}

.register-form-container {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.register-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.register-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.register-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.register-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Progress bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--progress-bg);
    transform: translateY(-50%);
    z-index: 1;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--step-inactive);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.progress-step.active {
    background-color: var(--step-active);
    transform: scale(1.1);
}

.progress-step.complete {
    background-color: var(--step-complete);
}

.progress-step-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 500;
}

.progress-bar {
    height: 4px;
    background-color: var(--progress-bg);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--step-active);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Form steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: var(--transition);
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--input-placeholder);
}

.form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition);
}

.form-control:focus + .form-icon {
    color: var(--primary-color);
}

.form-select {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: 10px;
    border: 1px solid var(--input-border);
    background-color: var(--input-bg);
    color: var(--text-color);
    transition: var(--transition);
    font-size: 1rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.5rem;
}

.form-select:focus {
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
    outline: none;
}

.form-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    padding: 0.25rem;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Password strength meter */
.password-strength {
    margin-top: 0.5rem;
    height: 4px;
    background-color: var(--progress-bg);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-meter {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    font-weight: 500;
}

.strength-weak {
    background-color: var(--danger-color);
    width: 25%;
}

.strength-fair {
    background-color: var(--warning-color);
    width: 50%;
}

.strength-good {
    background-color: var(--primary-color);
    width: 75%;
}

.strength-strong {
    background-color: var(--success-color);
    width: 100%;
}

.text-weak {
    color: var(--danger-color);
}

.text-fair {
    color: var(--warning-color);
}

.text-good {
    color: var(--primary-color);
}

.text-strong {
    color: var(--success-color);
}

/* Form check */
.form-check {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    cursor: pointer;
}

.form-check-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.form-check-label a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* Form navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}

.btn-prev {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background-color: var(--card-bg);
    color: var(--text-muted);
    border: 1px solid var(--input-border);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.btn-prev:hover {
    background-color: var(--gray-light);
    color: var(--text-color);
}

.btn-prev i {
    margin-right: 0.5rem;
}

.btn-next, .btn-submit {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.btn-next:hover, .btn-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 133, 244, 0.25);
}

.btn-next:active, .btn-submit:active {
    transform: translateY(0);
}

.btn-next i, .btn-submit i {
    margin-left: 0.5rem;
}

/* Login link */
.login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.login-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.login-link a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

/* Invalid feedback */
.invalid-feedback {
    display: none;
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-control.is-invalid ~ .form-icon {
    color: var(--danger-color);
}

.form-control.is-valid {
    border-color: var(--success-color);
}

.form-control.is-valid ~ .form-icon {
    color: var(--success-color);
}

/* Theme toggle */
.theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-color);
}

[data-bs-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Flash messages */
.flash-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
}

.alert {
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Responsive styles */
@media (max-width: 992px) {
    .register-container {
        flex-direction: column;
        max-width: 600px;
        min-height: auto;
    }
    
    .register-illustration {
        padding: 2rem;
        min-height: 250px;
    }
    
    .illustration-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    .illustration-icon i {
        font-size: 2.5rem;
    }
    
    .illustration-title {
        font-size: 1.8rem;
    }
    
    .illustration-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .register-form-container {
        padding: 2rem;
    }
    
    .register-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .register-container {
        margin: 1rem;
        border-radius: 12px;
    }
    
    .register-illustration {
        padding: 1.5rem;
        min-height: 200px;
    }
    
    .illustration-icon {
        width: 60px;
        height: 60px;
    }
    
    .illustration-icon i {
        font-size: 2rem;
    }
    
    .illustration-title {
        font-size: 1.5rem;
    }
    
    .register-form-container {
        padding: 1.5rem;
    }
    
    .progress-step {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    
    .progress-step-label {
        font-size: 0.7rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-prev, .btn-next, .btn-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Animation classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
    opacity: 0;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation delays */
.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}
