
/* Bebas Neue for Logo/Company Name */
@font-face {
    font-family: 'Bebas Neue';
    src: 
        url('fonts/bebasneue-regular-webfont.woff2') format('woff2'),
        url('fonts/bebasneue-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* Body or content font - Lato Regular */
@font-face {
    font-family: 'Lato';
    src: url('./fonts/lato-regular-webfont.woff2') format('woff2'),
        url('./fonts/lato-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* General Resets $ Body Styles */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    font: 1em 'Lato', sans-serif;
    background-color: #0e0f10f3;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    background-color: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Image Sidebar Styles */
.image-sidebar {
    flex: 1;
    background-image: url(./assets/sidebar-background.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    position: relative;
    flex-direction: column;  /* To stack logo section and credits */
    align-items: center;
    color: #fff;
    position: relative; /* Positioning context for absolute children*/
    min-width: 320px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1; /* Placed behind SVG and text within .logo-section */
}

.logo-section {
    position: absolute; /* Positioned relative to .image-sidebar */
    top: 100px; /* Specific value to position it down from the top */
    left: 0;
    width: 100%; 
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2; /* Ensures it's above other sidebar content */
    overflow: hidden; /* Clips content if it overflows this section */
}

.company-logo-svg {
    width: 120px;
    height: 150px;
    fill: #fff;
    stroke: #fff;
    stroke-width: 1;
    margin-bottom: 10px;
}

.company-logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5.5rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    line-height: 1;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.image-credit, 
.logo-attribution {
    position: absolute; /* Positioned relative to .image-sidebar */
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    z-index: 2; /* Ensures they are above background and overlay */
}

.image-credit {
    left: 40px;
    bottom: 30px;
}

.logo-attribution {
    right: 10px;
    bottom: 10px;
    text-align: right;
}

.image-credit a,
.logo-attribution a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.image-credit a:hover,
.logo-attribution a:hover {
    text-decoration: underline;
}

/* Form Section Styles */
.form-section {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    background-color: #fff;
}

.intro-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: #4a4a4a;
    width: 90%;
    margin-bottom: 30px;
    text-wrap: wrap;
}

/* Target <em> tags directlyh within any  */
 p > em {
    font-weight: bold;
}

.intro-text p:last-child {
    margin-bottom: 0;
    margin-top: 8px;
}

form {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 30px;
}

form > h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    padding-left: 40px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 0 40px;
}

.input-group {
    flex: 1 1 calc(50% - 10px); /* 50% - 10px (half of gap) */
    display: flex;
    flex-direction: column;
    min-width: 200px; /* Ensures inputs don't get too small before wrapping */
}

.input-group label {
    font-size: 0.8rem;
    color: #666;
    font-weight: bold;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* General styling for all input types */
input {
    width: 100%;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
   outline: none;
   border-color: #3b82f6;
   box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* Placeholder text syle */
input::placeholder {
    font-weight: lighter;
    color: rgba(128, 128, 128, 0.383);
    font-size: 0.8rem;
}

/* Only apply red border if input is invalid AND user has typed something */
input:invalid:not(:placeholder-shown) {
   border-color: #ef4444;
}

.required-asterisk {
    color: #ef4444;
    font-weight: bold;
    margin-left: 2px;
}

.error-message {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 5px;
    display: none;
}

/* Submit Button Styling */
button[type="submit"] {
    background-color: #596d48;
    color: #fff;
    padding: 8px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-left: 40px;
    margin-top: 20px;
}
button[type="submit"]:hover {
    background-color: #4a5c3e;
}

.login-text {
    font-size: 1rem;
    color: #333;
    padding: 0 40px;
    margin-top: 20px;
}

.login-text a {
    color: #596d48;
    text-decoration: none;
    font-weight: bold;
}

.login-text a:hover {
    text-decoration: underline;
}
