/* public/css/login.css */

/* Font Imports */
@import url(https://fonts.googleapis.com/css2?family=Lato&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Open+Sans&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined);
@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css);

/* Tailwind CSS Reset and Base Styles - These are the initial '*' and '::backdrop' rules */
*,
:after,
:before {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgba(59, 130, 246, 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style: ;
}
::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x: ;
  --tw-pan-y: ;
  --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ;
  --tw-gradient-via-position: ;
  --tw-gradient-to-position: ;
  --tw-ordinal: ;
  --tw-slashed-zero: ;
  --tw-numeric-figure: ;
  --tw-numeric-spacing: ;
  --tw-numeric-fraction: ;
  --tw-ring-inset: ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgba(59, 130, 246, 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ;
  --tw-brightness: ;
  --tw-contrast: ;
  --tw-grayscale: ;
  --tw-hue-rotate: ;
  --tw-invert: ;
  --tw-saturate: ;
  --tw-sepia: ;
  --tw-drop-shadow: ;
  --tw-backdrop-blur: ;
  --tw-backdrop-brightness: ;
  --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ;
  --tw-backdrop-hue-rotate: ;
  --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ;
  --tw-backdrop-saturate: ;
  --tw-backdrop-sepia: ;
  --tw-contain-size: ;
  --tw-contain-layout: ;
  --tw-contain-paint: ;
  --tw-contain-style: ;
} /*! tailwindcss v3.4.17 | MIT License | https://tailwindcss.com*/
*,
:after,
:before {
  border: 0 solid #e5e7eb;
  box-sizing: border-box;
}
:after,
:before {
  --tw-content: "";
}
:host,
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  font-family:
    Open Sans,
    ui-sans-serif,
    system-ui,
    sans-serif,
    Apple Color Emoji,
    Segoe UI Emoji,
    Segoe UI Symbol,
    Noto Color Emoji;
  font-feature-settings: normal;
  font-variation-settings: normal;
  -moz-tab-size: 4;
  tab-size: 4;
  -webkit-tap-highlight-color: transparent;
}
body {
  line-height: inherit;
  margin: 0;
}
hr {
  border-top-width: 1px;
  color: inherit;
  height: 0;
}
abbr:where([title]) {
  text-decoration: underline dotted;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
a {
  color: inherit;
  text-decoration: inherit;
}
b,
strong {
  font-weight: bolder;
}
code,
kbd,
pre,
samp {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    Liberation Mono,
    Courier New,
    monospace;
  font-feature-settings: normal;
  font-size: 1em;
  font-variation-settings: normal;
}
small {
  font-size: 80%;
}
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
table {
  border-collapse: collapse;
  border-color: inherit;
  text-indent: 0;
}
button,
input,
optgroup,
select,
textarea {
  color: inherit;
  font-family: inherit;
  font-feature-settings: inherit;
  font-size: 100%;
  font-variation-settings: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
}
button,
select {
  text-transform: none;
}
button,
input:where([type="button"]),
input:where([type="reset"]),
input:where([type="submit"]) {
  -webkit-appearance: button;
  background-color: transparent;
  background-image: none;
}
:-moz-focusring {
  outline: auto;
}
:-moz-ui-invalid {
  box-shadow: none;
}
progress {
  vertical-align: baseline;
}
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}
[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}
::-webkit-search-decoration {
  -webkit-appearance: none;
}
::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}
summary {
  display: list-item;
}
blockquote,
dd,
dl,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
p,
pre {
  margin: 0;
}
fieldset {
  margin: 0;
}
fieldset,
legend {
  padding: 0;
}
menu,
ol,
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
dialog {
  padding: 0;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: #9ca3af;
  opacity: 1;
}
[role="button"],
button {
  cursor: pointer;
}
:disabled {
  cursor: default;
}
audio,
canvas,
embed,
iframe,
img,
object,
svg,
video {
  display: block;
  vertical-align: middle;
}
img,
video {
  height: auto;
  max-width: 100%;
}
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

/* Custom CSS classes based on Tailwind utility classes */
.login-container {
  width: 100%;
  min-height: 100vh;
  background-image: linear-gradient(to bottom right, #020617, #1e293b);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background-color: rgba(15, 23, 42, 0.8); /* bg-slate-900/80 */
  backdrop-filter: blur(4px); /* backdrop-blur-sm */
  border-radius: 48px; /* rounded-2xl */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); /* shadow-2xl */
  padding: 32px; /* p-8 */
  width: 100%;
  max-width: 28rem; /* max-w-md */
  border: 1px solid rgba(51, 65, 85, 0.5); /* border border-slate-700/50 */
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); /* transform */
  transition-property: all; /* transition-all */
  transition-duration: 0.3s; /* duration-300 */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.login-card:hover {
  box-shadow: 0 25px 50px -12px rgba(192, 130, 50, 0.2); /* hover:shadow-primary-500/20 */
}

.text-center {
  text-align: center;
}

.mb-8 {
  margin-bottom: 36px;
}

.card-title {
  font-size: 30px; /* text-3xl */
  line-height: 36px; /* text-3xl */
  font-weight: 700; /* font-bold */
  color: #fff; /* text-white */
  margin-bottom: 12px; /* mb-2 */
}

.card-subtitle {
  color: #cbd5e1; /* text-slate-300 */
}

.login-form {
  margin-top: 24px; /* space-y-6 */
}

.form-section {
  margin-top: 16px; /* space-y-4 */
}

.form-group {
  margin-top: 8px; /* space-y-2 */
}

.form-label {
  display: block;
  font-size: 14px; /* text-sm */
  font-weight: 500; /* font-medium */
  color: #e2e8f0; /* text-slate-200 */
  margin-bottom: 10px; /* Added spacing below labels */
}

.input-icon-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px; /* left-4 */
  top: 50%;
  transform: translateY(-50%); /* -translate-y-1/2 */
  color: #94a3b8; /* text-slate-400 */
  font-size: 20px; /* text-xl */
}

.form-input {
  width: 100%;
  padding-left: 48px; /* pl-12 */
  padding-right: 16px; /* pr-4 */
  padding-top: 12px; /* py-3 */
  padding-bottom: 12px; /* py-3 */
  background-color: rgba(30, 41, 59, 0.7); /* bg-slate-800/70 */
  border: 1px solid #334155; /* border border-slate-700 */
  border-radius: 24px; /* rounded-lg */
  color: #fff; /* text-white */
  caret-color: #fff; /* Added for better visibility of cursor */
  outline: none; /* focus:outline-none */
  transition-property: all; /* transition-all */
  transition-duration: 0.2s; /* duration-200 */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input::placeholder {
  color: #94a3b8; /* placeholder-slate-400 */
}

.form-input:focus {
  border-color: transparent; /* focus:border-transparent */
  box-shadow: 0 0 0 2px #c08232; /* focus:ring-2 focus:ring-primary-500 */
  outline: 2px solid transparent; /* focus:outline-none */
  outline-offset: 2px; /* focus:ring-offset-2 */
}

.form-input:hover {
  border-color: #475569; /* hover:border-slate-600 */
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.forgot-password-link {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-top:10px;
  font-size: 12px; /* text-xs */
  color: #cf9840; /* text-primary-400 */
  transition-property: color; /* transition-colors */
  transition-duration: 0.2s; /* duration-200 */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}


.forgot-password-link:hover {
  color: #dbb369; /* hover:text-primary-300 */
}

.password-input {
  padding-right: 48px; /* pr-12 */
}

.password-toggle-btn {
  position: absolute;
  right: 12px; /* right-3 */
  top: 50%;
  transform: translateY(-50%); /* -translate-y-1/2 */
  color: #94a3b8; /* text-slate-400 */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition-property: color; /* transition-colors */
  transition-duration: 0.2s; /* duration-200 */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.password-toggle-btn:hover {
  color: #fff; /* hover:text-white */
}

.remember-me-group {
  display: flex;
  align-items: center;
  margin-top: 8px; /* pt-2 */
  gap: 12px; /* space-x-3 */
  margin-bottom: 50px; /* Added spacing before login button */
}

.remember-checkbox {
  width: 16px; /* w-4 */
  height: 16px; /* h-4 */
  color: #c08232; /* text-primary-500 */
  background-color: #334155; /* bg-slate-700 */
  border: 1px solid #475569; /* border-slate-600 */
  border-radius: 12px; /* rounded */
  outline: none; /* focus:outline-none */
  box-shadow: none; /* focus:ring-2 (default) */
  transition-property: all;
  transition-duration: 0.15s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  margin-top:12px;
}

.remember-checkbox:focus {
  box-shadow: 0 0 0 2px #c08232; /* focus:ring-primary-500 */
  outline-offset: 2px; /* focus:ring-offset-2 */
  outline-color: #0f172a; /* focus:ring-offset-slate-900 */
}

.remember-label {
  font-size: 14px; /* text-sm */
  color: #cbd5e1; /* text-slate-300 */
  margin-top:12px;
}

.text-link{
  font-size: 10px;
}

.login-button {
  width: 100%;
  background-color: #c08232; /* bg-primary-500 */
  color: #fff; /* text-white */
  font-weight: 600; /* font-semibold */
  padding-top: 12px; /* py-3 */
  padding-bottom: 12px; /* py-3 */
  padding-left: 16px; /* px-4 */
  padding-right: 16px; /* px-4 */
  border-radius: 24px; /* rounded-lg */
  transition-property: all; /* transition-all */
  transition-duration: 0.2s; /* duration-200 */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* shadow-lg */
  outline: none; /* focus:outline-none */
  border: none;
  cursor: pointer;
}

.submit-form {
  margin-top: 20px;
  width: 100%;
  background-color: #c08232; /* bg-primary-500 */
  color: #fff; /* text-white */
  font-weight: 600; /* font-semibold */
  padding-top: 12px; /* py-3 */
  padding-bottom: 12px; /* py-3 */
  padding-left: 16px; /* px-4 */
  padding-right: 16px; /* px-4 */
  border-radius: 24px; /* rounded-lg */
  transition-property: all; /* transition-all */
  transition-duration: 0.2s; /* duration-200 */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transform: translate(var(--tw-translate-x), var(--tw-translate-y))
    rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
    scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); /* shadow-lg */
  outline: none; /* focus:outline-none */
  border: none;
  cursor: pointer;
}

.login-button:hover {
  background-color: #a66629; /* hover:bg-primary-600 */
  transform: translateY(-2px); /* hover:translate-y-[-2px] */
}

.login-button:focus {
  box-shadow: 0 0 0 2px #c08232, 0 0 0 2px #0f172a; /* focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 focus:ring-offset-slate-900 */
}

.login-button.shadow-primary-500\/20 { /* This class name needs to be adjusted in HTML if still used */
  box-shadow: 0 10px 15px -3px rgba(192, 130, 50, 0.2), 0 4px 6px -4px rgba(192, 130, 50, 0.2);
}

.divider-line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 16px; /* py-4 */
  padding-bottom: 16px; /* py-4 */
}

.divider-line::before {
  content: "";
  position: absolute;
  width: 100%;
  border-top: 1px solid #334155; /* border-t border-slate-700 */
}

.divider-text {
  position: relative;
  background-color: #0f172a; /* bg-slate-900 */
  padding-left: 16px; /* px-4 */
  padding-right: 16px; /* px-4 */
  font-size: 14px; /* text-sm */
  color: #94a3b8; /* text-slate-400 */
}

.grid-social-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* grid grid-cols-3 */
  gap: 16px; /* gap-4 */
}

.social-button {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #1e293b; /* bg-slate-800 */
  padding: 12px; /* p-3 */
  border-radius: 24px; /* rounded-lg */
  transition-property: all; /* transition-all */
  transition-duration: 0.2s; /* duration-200 */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.social-button:hover {
  background-color: #334155; /* hover:bg-slate-700 */
}

.social-icon {
  font-size: 20px; /* text-xl */
  color: #94a3b8; /* text-slate-400 */
  transition-property: color; /* transition-colors */
  transition-duration: 0.2s; /* duration-200 */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.social-button:hover .social-icon {
  color: #cf9840; /* group-hover:text-primary-400 */
}

.signup-prompt {
  text-align: center;
  padding-top: 16px; /* pt-4 */
}

.signup-text {
  color: #cbd5e1; /* text-slate-300 */
}

.signup-link {
  color: #cf9840; /* text-primary-400 */
  transition-property: color; /* transition-colors */
  transition-duration: 0.2s; /* duration-200 */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 4px; /* ml-1 */
  font-weight: 500; /* font-medium */
}

.signup-link:hover {
  color: #dbb369; /* hover:text-primary-300 */
}

.footer-text {
  margin-top: 32px; /* mt-8 */
  text-align: center;
  font-size: 12px; /* text-xs */
  color: #64748b; /* text-slate-500 */
}

.footer-text p {
  margin: 0; /* Override any default paragraph margins */
}

.footer-text .mt-1 {
  margin-top: 4px; /* mt-1 */
}

.footer-link {
  color: #94a3b8; /* text-slate-400 */
  transition-property: color; /* transition-colors */
  transition-duration: 0.2s; /* duration-200 */
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-link:hover {
  color: #cf9840; /* hover:text-primary-400 */
}

/* Specific styles for the error message */
.error-message {
    background-color: rgba(127, 29, 29, 0.5); /* bg-red-900/50 */
    color: #fca5a5; /* text-red-300 */
    padding: 12px; /* p-3 */
    border-radius: 8px; /* rounded-lg */
    margin-bottom: 20px; /* mb-4 */
    text-align: center;
    font-size: 14px; /* text-sm */
}

/* Language Switcher Styles */
.language-switcher-wrapper {
    position: absolute;
    top: 20px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    z-index: 1000; /* Ensure it's above other elements */
    background-color: rgba(15, 23, 42, 0.7); /* Slightly darker background */
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(51, 65, 85, 0.5);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease-in-out;
}

.language-switcher-wrapper:hover {
    background-color: rgba(20, 30, 50, 0.8);
    border-color: rgba(71, 85, 105, 0.7);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.language-form {
    display: flex;
    align-items: center;
    gap: 8px; /* Space between label and select */
}

.language-label {
    font-size: 14px;
    color: #e2e8f0; /* text-slate-200 from your theme */
    font-weight: 500;
    white-space: nowrap; /* Prevent text wrapping */
}

.language-select {
    background-color: transparent; /* Make it transparent to show wrapper background */
    border: none; /* Remove border */
    border-radius: 8px; /* Slightly rounded */
    padding: 6px 10px;
    color: #fff; /* White text for options */
    font-size: 14px;
    cursor: pointer;
    appearance: none; /* Remove default dropdown arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23e2e8f0" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'); /* Custom arrow */
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px; /* Make space for the custom arrow */
    transition: all 0.2s ease-in-out;
}

.language-select:focus {
    outline: none;
    border-color: #c08232; /* primary-500 */
    box-shadow: 0 0 0 2px rgba(192, 130, 50, 0.5);
}

.language-select option {
    background-color: #1e293b; /* Background for dropdown options */
    color: #fff;
}

/* Base alert style */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-out;
}

/* Error */
.alert-danger {
    background-color: #ffe6e6; /* light red */
    color: #cc0000;            /* dark red text */
    border: 1px solid #cc0000;
}

/* Success */
.alert-success {
    background-color: #e6ffea; /* light green */
    color: #007700;            /* dark green text */
    border: 1px solid #007700;
}

/* Info */
.alert-info {
    background-color: #e6f0ff; /* light blue */
    color: #0055cc;            /* dark blue text */
    border: 1px solid #0055cc;
}

/* Optional fade-in animation */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(-5px); }
    100% { opacity: 1; transform: translateY(0); }
}
