/* Common Authentication Page Theme */

:root {
    /* New Modern Theme */
    --primary-color: #007bff; /* Brighter Blue */
    --primary-light: #54a0ff;
    --primary-dark: #0056b3;
    --secondary-color: #17a2b8; /* Teal */
    --success-color: #28a745; /* Standard Green */
    --warning-color: #ffc107; /* Standard Yellow */
    --danger-color: #dc3545; /* Standard Red */
    --info-color: #17a2b8; /* Using Teal as Info */
    --dark-color: #343a40; /* Dark Gray */
    --light-color: #f8f9fa; /* Light Gray */
    --white-color: #ffffff;
    --gray-color: #6c757d; /* Medium Gray */
    --gradient-primary: linear-gradient(135deg, #007bff, #17a2b8); /* Blue to Teal Gradient */
    --gradient-secondary: linear-gradient(135deg, #6c757d, #343a40); /* Gray Gradient */
    
    --font-family: 'Poppins', sans-serif; /* Keep Poppins */
    --heading-font: 'Montserrat', sans-serif; /* Keep Montserrat */
    
    --border-radius-sm: .2rem;
    --border-radius: .375rem; /* Slightly more modern radius */
    --border-radius-lg: .5rem;
    --border-radius-xl: 1rem;
    --shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);
    --shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-color); /* Use variable */
    color: var(--dark-color); /* Default text color */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Replace linear gradient with subtle SVG dot pattern */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12'%3E%3Crect width='12' height='12' fill='none'/%3E%3Ccircle cx='6' cy='6' r='1' fill='rgba(0, 123, 255, 0.08)'/%3E%3C/svg%3E"); 
    background-repeat: repeat;
    background-size: 12px 12px; /* Match SVG size */
    opacity: 1; /* Control opacity via fill alpha */
    z-index: -1;
    pointer-events: none; /* Ensure it doesn't interfere with clicks */
}

.auth-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 15px;
}

.auth-card {
    background: var(--white-color); /* Use variable */
    border-radius: var(--border-radius-xl); /* Use variable */
    overflow: hidden;
    box-shadow: var(--shadow-lg); /* Use variable */
    border: 1px solid #dee2e6; /* Subtle border */
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-primary);
}

.auth-row {
    display: flex;
    flex-wrap: wrap;
}

.auth-image-col {
    flex: 1;
    background: var(--gradient-primary);
    position: relative;
    min-height: 400px;
    display: none; /* Keep hidden on small screens */
    border-top-left-radius: var(--border-radius-xl); /* Match card radius */
    border-bottom-left-radius: var(--border-radius-xl); /* Match card radius */
}

@media (min-width: 992px) {
    .auth-image-col {
        display: flex; /* Use flex for centering */
        align-items: center; /* Center vertically */
        justify-content: center; /* Center horizontally */
    }
}

.auth-image-content {
    position: relative; /* Change from absolute */
    padding: 60px; /* Increase padding */
    color: var(--white-color);
    z-index: 1;
    text-align: center;
}

.auth-image-content h2 {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 36px; /* Slightly larger */
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); /* Enhanced shadow */
}

.auth-image-content p {
    font-size: 17px; /* Slightly larger */
    line-height: 1.7;
    margin-bottom: 35px;
    opacity: 0.95; /* More readable */
}

.auth-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15); /* Slightly lighter overlay */
    z-index: 0;
    border-top-left-radius: var(--border-radius-xl); /* Match card radius */
    border-bottom-left-radius: var(--border-radius-xl); /* Match card radius */
}

.auth-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Reduced opacity */
    border-top-left-radius: var(--border-radius-xl); /* Match card radius */
    border-bottom-left-radius: var(--border-radius-xl); /* Match card radius */
}

.auth-form-col {
    flex: 1;
    padding: 60px 50px; /* Default padding, can be overridden */
}

@media (max-width: 576px) {
    .auth-form-col {
        padding: 40px 25px; /* Adjusted padding */
    }
}

/* Padding override for introducer.php specifically */
/* If index.php needs different padding, it can define it in its own style block */
body.page-introducer .auth-form-col {
     padding: 50px 40px; 
}
@media (max-width: 576px) {
     body.page-introducer .auth-form-col {
        padding: 40px 25px; /* Keep consistent */
    }
}


.auth-logo {
    display: block;
    margin: 0 auto 35px; /* Increased margin */
    max-width: 150px; /* Adjusted size */
    height: auto;
    transition: transform 0.3s ease, filter 0.3s ease; /* Added filter transition */
}

.auth-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1); /* Subtle brightness on hover */
}

.auth-title {
    font-family: var(--heading-font);
    font-weight: 600; /* Slightly lighter weight */
    font-size: 30px; /* Adjusted size */
    margin-bottom: 15px; /* Increased margin */
    text-align: center;
    color: var(--dark-color);
}

.auth-subtitle {
    font-size: 16px;
    color: var(--gray-color); /* Use variable */
    margin-bottom: 40px; /* Increased margin */
    text-align: center;
}

/* Common Form Styles (Likely shared) */
.form-group {
    margin-bottom: 25px; 
    position: relative; 
}

.form-control {
    width: 100%;
    padding: 15px 20px; /* Adjusted padding */
    font-size: 16px; /* Slightly larger */
    line-height: 1.5; /* Added line-height */
    color: var(--dark-color); /* Use variable */
    background-color: var(--white-color); /* Use variable */
    background-clip: padding-box;
    border: 1px solid #ced4da; /* Standard border */
    border-radius: var(--border-radius); /* Use variable */
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Bootstrap-like focus */
    outline: 0;
}

.form-control::placeholder {
    color: #6c757d; /* Standard placeholder color */
    opacity: 1; 
}

.form-check-label {
    color: #495057; /* Slightly darker label */
    font-size: 15px; /* Adjusted size */
    cursor: pointer;
}

.bottom-text {
    text-align: center;
    margin-top: 25px;
    color: var(--gray-color); 
    font-size: 15px;
}

.bottom-text a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.bottom-text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.validation-error {
    color: var(--danger-color);
    font-size: 0.875em; /* Relative size */
    margin-top: 5px; /* Space above error */
    display: block; /* Ensure it takes its own line */
}

/* Basic Button Styling (Can be extended per page) */
.btn {
    display: inline-block;
    font-weight: 600;
    line-height: 1.5;
    color: var(--white-color);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .75rem 1.25rem; /* Adjusted padding */
    font-size: 1rem;
    border-radius: var(--border-radius-lg); /* Use variable */
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, transform .15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color)); /* Darker gradient on hover */
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Input with Icon Styles (Common) */
.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 15px; /* Standard position */
    color: #94a3b8; /* Lighter icon color */
    transition: color 0.3s ease;
    z-index: 3; /* Ensure icon is clickable over input */
    pointer-events: none; /* Prevent icon from blocking input focus */
}

.input-group .form-control {
    padding-left: 45px; /* Space for the icon */
}

.input-group:focus-within .input-icon {
    color: var(--primary-color); /* Icon color changes on focus */
} 