:root {
    --primary-blue: #2563eb;
    --secondary-blue: #1e40af;
    --light-blue: #dbeafe;
    --dark-blue: #1e3a8a;
}

body {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.register-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.register-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.register-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: white;
    padding: 2rem;
    text-align: center;
}

.register-header h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
}

.register-header .subtitle {
    margin-top: 0.5rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.register-body {
    padding: 2rem;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    border: none;
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    background: linear-gradient(135deg, var(--secondary-blue), var(--dark-blue));
}

.btn-register:disabled {
    opacity: 0.7;
    transform: none;
}

.input-group-text {
    background: transparent;
    border: 2px solid #e5e7eb;
    border-right: none;
    color: var(--primary-blue);
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-blue);
}

.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 1.5rem;
}

.alert-danger {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #dc2626;
}

.alert-success {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #16a34a;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

.loading-text {
    margin-left: 0.5rem;
}

.login-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.login-link a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: var(--secondary-blue);
    text-decoration: underline;
}

.password-strength {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.strength-bar {
    height: 4px;
    border-radius: 2px;
    background: #e5e7eb;
    margin-top: 0.25rem;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: #ef4444; width: 25%; }
.strength-fair { background: #f59e0b; width: 50%; }
.strength-good { background: #10b981; width: 75%; }
.strength-strong { background: #059669; width: 100%; }

@media (max-width: 576px) {
    .register-container {
        padding: 10px;
    }
    
    .register-header {
        padding: 1.5rem;
    }
    
    .register-body {
        padding: 1.5rem;
    }
}