body {
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.sidebar-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background-pc.jpg');  
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #5271FF;
    opacity: 0.80;
    z-index: 1;
}

.logo-container {
    z-index: 3;
    text-align: center;
}

.logo {
    width: 130px;
    height: auto;
    margin: 0 auto 20px;
}

.logo-container h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.logo-container p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 300px;
    margin: 0 auto;
}

.form-logo {
    width: 400px; 
    height: auto;
    margin: 0 auto 30px;
    display: block;
}

.login-form {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
}

.form-container {
    width: 100%;
    max-width: 400px;
    padding: 0 20px;
}

h2 {
    text-align: center;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 8px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: #fff;
}

select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

input[type="text"]:focus,
input[type="password"]:focus, 
input[type="email"]:focus, 
input[type="date"]:focus,
select:focus {
    border-color: #4361ee;
    outline: none;
}

select option {
    padding: 8px 12px;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
}

select option:hover {
    background-color: #f8f9fa;
}

select option[selected] {
    background-color: #4361ee;
    color: white;
}

.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-container input {
    width: 100%;
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #4361ee;
}

.toggle-password:focus {
    outline: none;
    color: #4361ee;
}

.eye-icon, .eye-off-icon {
    stroke: currentColor;
}

input[type="date"]::placeholder {
    color: #666;
}

input[type="date"]::-webkit-datetime-edit {
    color: #666;
}

input[type="date"]::-moz-placeholder {
    color: #666;
}

input.success,
select.success {
    border-color: #4BB543;
    background-color: rgba(75, 181, 67, 0.05);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.register-button {
    width: 100%;
    padding: 12px;
    background-color: #4361ee;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s;
}

.register-button:hover {
    background-color: #3a0ca3;
}

.register-button i {
    margin-right: 8px;
}

.login-link {
    text-align: center;
    margin-top: 24px;
    color: #666;
}

.login-link a {
    color: #4361ee;
    text-decoration: none;
    font-weight: 500;
}

input.error,
select.error {
    border-color: #e63946;
    background-color: rgba(230, 57, 70, 0.05);
}

.error-message {
    color: #e63946;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease-out;
}

.success-message svg {
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.register-button:disabled {
    background-color: #8a8a8a;
    cursor: not-allowed;
}

.register-button:disabled:hover {
    background-color: #8a8a8a;
}