:root {
    --primary: #FF2A89;
    --primary-dark: #F75D80;
    --secondary: #10b981;
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #9ca3af;
    --gray-light: #f3f4f6;
    --border: #e5e7eb;
    --error: #ef4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Blurred background using pseudo-element */
body {
    position: relative;
    color: var(--dark);
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Fixed the background to cover entire page */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(/images/bg/bg-auth.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: blur(8px);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(55, 55, 55, 0.7);
    z-index: -1;
}

.auth-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin: 0 auto; /* Center the container */
}

.form-section {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.graphic-section {
    flex: 1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.logo {
    position: absolute;
    top: 30px;
    left: 30px;
    font-weight: 700;
    font-size: 24px;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    font-size: 28px;
}

.form-header {
    margin-bottom: 40px;
    text-align: center; /* Center form header */
}

.form-header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.form-header p {
    color: var(--gray);
    font-size: 16px;
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.input-group {
    position: relative;
}

input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: white !important;
    color: var(--dark) !important;
}

/* Fix for autofill styles */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: var(--dark) !important;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 42, 137, 0.2);
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    cursor: pointer;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember {
    display: flex;
    align-items: center;
}

.remember input {
    width: auto;
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn {
    display: block;
    width: 100%;
    padding: 16px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.support-link {
    text-align: center;
    margin-top: 24px;
}

.support-link a {
    color: var(--gray);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s;
}

.support-link a:hover {
    color: var(--primary);
}

.support-link i {
    margin-right: 8px;
}

.graphic-content {
    text-align: center;
    z-index: 2;
}

.graphic-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}

.graphic-content p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 400px;
    margin: 0 auto;
}

.graphic-image {
    margin-top: 40px;
    font-size: 200px;
    opacity: 0.8;
}

.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Demo credentials styling */
.demo-credentials {
    margin-top: 30px;
    padding: 20px;
    background-color: var(--gray-light);
    border-radius: 8px;
    text-align: center; /* Center demo credentials */
}

.demo-credentials h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: var(--dark);
}

.credentials-table {
    display: table;
    width: 100%;
    margin: 0 auto; /* Center the table */
}

.credential-row {
    display: table-row;
}

.credential-row > div {
    display: table-cell;
    padding: 8px;
    border-bottom: 1px solid var(--border);
    text-align: center; /* Center table content */
}

.credential-row:last-child > div {
    border-bottom: none;
}

.role {
    font-weight: 600;
}

/* Privacy notice styling */
.privacy-notice {
    margin-top: 30px;
    font-size: 14px;
    color: var(--gray);
    text-align: center;
}

.privacy-notice a {
    color: var(--primary);
    text-decoration: underline;
}

/* Header logo styling */
.header-logo {
    text-align: center;
    padding: 40px 0;
}

.header-logo img {
    max-height: 100px;
}

@media (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        height: auto;
        margin: 20px; /* Add margin on mobile */
    }
    
    .graphic-section {
        display: none;
    }
    
    .form-section {
        padding: 40px 20px;
    }
    
    body {
        padding: 10px; /* Reduce padding on mobile */
    }
}

/* Additional centering for form elements */
.form-section {
    text-align: center; /* Center all form content */
}

.form-group, .remember-forgot, .support-link, .privacy-notice {
    text-align: left; /* Keep form elements left-aligned but within centered container */
    max-width: 400px; /* Limit width for better centering */
    margin-left: auto;
    margin-right: auto;
}