* {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f4f6f9;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
}

.auth-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    max-width: 1060px;
    display: flex;
    flex-direction: row;
}

.auth-image-side {
    width: 45%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.5rem;
    color: white;
    background: linear-gradient(135deg, #d10000 0%, #8b0000 100%);
    overflow: hidden;
}

.auth-bg-login,
.auth-bg-register {
    background: linear-gradient(135deg, #c40000 0%, #7a0000 100%);
}

.auth-image-content {
    position: relative;
    z-index: 2;
}

.auth-form-side {
    width: 55%;
    padding: 2rem 3.5rem;
    background-color: #ffffff;
    overflow-y: auto;
}

.auth-title {
    font-size: 1.7rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.15rem;
}

.auth-subtitle {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.88rem;
}

.form-control-custom {
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 0.5rem 2.8rem 0.5rem 2.8rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #fafbfc;
}

.form-control-custom:focus {
    border-color: #d10000;
    box-shadow: 0 0 0 4px rgba(209, 0, 0, 0.1);
    background-color: #fff;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    transition: color 0.3s ease;
}

.form-group:focus-within .input-icon {
    color: #d10000;
}

.btn-auth {
    background-color: #d10000;
    border: none;
    border-radius: 12px;
    padding: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    background-color: #a30000;
    box-shadow: 0 5px 15px rgba(209, 0, 0, 0.2);
}

.role-badge {
    font-size: 0.75rem;
    padding: 0.3em 0.8em;
    background-color: #f8d7da;
    color: #d10000;
    border-radius: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.role-badge-white {
    background-color: #fff;
}

@media (max-width: 768px) {
    .auth-card {
        flex-direction: column;
    }

    .auth-image-side {
        width: 100%;
        padding: 2rem;
        min-height: 250px;
    }

    .auth-form-side {
        width: 100%;
        padding: 2.5rem 1.5rem;
    }
}

/* Custom Validation & Alert Styles */
.form-control-custom.is-invalid {
    background-image: none !important;
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
    background-color: #ffffff !important;
}

.auth-alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.invalid-feedback-custom {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    font-weight: 500;
}