/* Common Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    display: flex;
    width: 100%;
    max-width: 900px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.welcome-section {
    flex: 1;
    /* background: #990a12; */
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right:1px #990a12 solid;
    text-align: center;
}

.welcome-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.welcome-section p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.form-container {
    flex: 1;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.form {
    width: 100%;
    transition: transform 0.5s ease;
}

.form.hidden {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

.form.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
}

h2 {
    color: #990a12;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

input, textarea, select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #990a12;
}

.btn {
    background: #990a12;
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: #eda911;
}

.text-center {
    text-align: center;
    margin-top: 20px;
}

.text-center a {
    color: #990a12;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.text-center a:hover {
    color: #eda911;
    text-decoration: underline;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 500;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.user-type-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.user-type-option {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    border: 2px solid #e1e5ee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-type-option.selected {
    border-color: #990a12;
    background-color: rgba(74, 110, 224, 0.1);
}

.user-type-option i {
    font-size: 24px;
    margin-bottom: 5px;
    color: #990a12;
}

.user-type-option span {
    display: block;
    font-weight: 600;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 38px;
    cursor: pointer;
    color: #6c757d;
}

.password-container {
    position: relative;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Register Form Specific Styles - Two Columns */
.register-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.register-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .welcome-section {
        padding: 30px 20px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .register-row {
        flex-direction: column;
        gap: 20px;
    }
}