/* frontend/styles.css */

/*
This file is manually adjusted to include necessary Tailwind-like responsive styles
via @media queries, as a full Tailwind CLI build is not in use for this example.
In a real Tailwind project, these would be automatically generated.
*/

/* --- Base Styles (Mobile First) --- */
body {
  font-family: 'Inter', sans-serif; /* Applied from HTML style block */
  background-color: #f8f8f8; /* Applied from HTML style block */
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex; /* For body flex properties */
  flex-direction: column; /* For body flex properties */
  min-height: 100vh; /* For body flex properties */
  align-items: center; /* For body flex properties */
  justify-content: center; /* For body flex properties */
  padding: 1rem; /* p-4 */
}

*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb; /* Default Tailwind border-gray-200 */
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

button {
  cursor: pointer;
}

/* --- Gradient Background Container (Updated Colors) --- */
.gradient-bg {
    background: linear-gradient(to right, #EDE5D8, #F7F0E6); /* Light beige gradient */
    display: flex; /* flex */
    flex-direction: column; /* flex-col (default for mobile) */
    align-items: center; /* items-center */
    justify-content: center; /* justify-center */
    width: 100%; /* w-full */
    max-width: 56rem; /* max-w-4xl (896px) */
    margin-left: auto; /* mx-auto */
    margin-right: auto; /* mx-auto */
    padding-top: 3rem; /* py-12 */
    padding-bottom: 3rem; /* py-12 */
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem; /* px-6 */
    border-radius: 1rem; /* rounded-2xl */
}

/* --- Logo Section Styles (Mobile First) --- */
.flex-shrink-0 { flex-shrink: 0; }
.mb-8 { margin-bottom: 2rem; }
.w-32 { width: 12rem; }
.h-auto { height: auto; }
.rounded-xl { border-radius: 0.75rem; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.mx-auto { margin-left: auto; margin-right: auto; } /* For centering the image on mobile */


/* --- Form Container Styles --- */
.form-container {
    background-color: #ffffff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    border-radius: 1rem; /* rounded-xl */
    width: 100%; /* w-full */
    max-width: 28rem; /* max-w-md (448px) */
    padding: 2rem; /* p-8 */
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}
.w-full { width: 100%; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.border { border-width: 1px; }
.border-gray-300 { border-color: #d1d5db; }
.rounded-lg { border-radius: 0.5rem; }
.text-gray-800 { color: #1f2937; }
.transition {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}
.duration-200 { transition-duration: 200ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.submit-button {
    background-color: #1A521A; /* Darker green, more aligned with logo */
    color: #fff; /* text-white */
    font-weight: 700; /* font-bold */
    padding-top: 0.75rem; /* py-3 */
    padding-bottom: 0.75rem; /* py-3 */
    padding-left: 1.5rem; /* px-6 */
    padding-right: 1.5rem; /* px-6 */
    border-radius: 0.5rem; /* rounded-lg */
    font-size: 1.125rem; /* text-lg */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-md */
}
.submit-button:hover { background-color: #0A320A; /* Even darker green on hover */ }
.submit-button:focus {
    outline: 2px solid transparent; outline-offset: 2px; /* focus:outline-none */
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); /* focus:ring-2 */
    --tw-ring-color: #1A521A; /* Use the new button color for focus ring */
    --tw-ring-opacity: 0.75; /* focus:ring-opacity-75 */
    border-color: #1A521A; /* Use the new button color for focus border */
}
.message-box {
    background-color: #e2e8f0;
    border-left: 4px solid #3182ce;
    color: #A19680;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding-left: 1rem; /* px-4 */
    padding-right: 1rem; /* px-4 */
    padding-top: 0.75rem; /* py-3 */
    padding-bottom: 0.75rem; /* py-3 */
}
.message-box.hidden { display: none; }
.message-box.bg-green-100 { background-color: #dcfce7; }
.message-box.border-green-500 { border-color: #22c55e; }
.message-box.text-green-800 { color: #166534; }
.message-box.bg-red-100 { background-color: #fee2e2; }
.message-box.border-red-500 { border-color: #ef4444; }
.message-box.text-red-800 { color: #991b1b; }
.message-box.bg-blue-100 { background-color: #dbeafe; }
.message-box.border-blue-500 { border-color: #3b82f6; }
.message-box.text-blue-800 { color: #1e40af; }


/* --- Media Queries for Medium (md) Breakpoint (typically >= 768px) --- */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:space-x-8 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 2rem; /* 8 units */
    margin-top: 0; /* Reset margin-top from flex-col */
  }
  .md\:mb-0 { margin-bottom: 0; }
  .md\:w-40 { width: 10rem; /* 160px */ }
}

/* --- Media Queries for Large (lg) Breakpoint (typically >= 1024px) --- */
@media (min-width: 1024px) {
  .lg\:space-x-12 > :not([hidden]) ~ :not([hidden]) {
    margin-left: 3rem; /* 12 units */
  }
  .lg\:w-48 { width: 12rem; /* 192px */ }
}
