/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
a {
  text-decoration: none;
  color: white;
}

/* CSS Reset End */

:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  --text-color: black;
  --form-bg: oklch(96.9% 0.003 264.894);
  --form-container-bg: white;
  --input-bg: white;
}
/* @media (prefers-color-scheme: dark) { */
/*   :root { */
/*     font-family: */
/*       system-ui, */
/*       -apple-system, */
/*       BlinkMacSystemFont, */
/*       "Segoe UI", */
/*       Roboto, */
/*       Oxygen, */
/*       Ubuntu, */
/*       Cantarell, */
/*       "Open Sans", */
/*       "Helvetica Neue", */
/*       sans-serif; */
/*     --text-color: white; */
/*     --form-bg: black; */
/*     --form-container-bg: oklch(12.8% 0.042 264.755); */
/*     --input-bg: black; */
/*   } */
/* } */

html,
body {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
}

.image-left {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: clamp(400px, 50%, 600px);
  background: no-repeat
    url("https://images.unsplash.com/photo-1585202900225-6d3ac20a6962?q=80&w=1287&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  align-items: center;
  justify-content: space-around;
}

.image-header-container {
  display: flex;
  background-color: rgba(0, 0, 0, 0.3);
  justify-content: center;
  align-items: center;
  width: 100%;
  color: white;
  font-size: 4em;
  gap: 2rem;
}

.form-body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1em;
  justify-content: center;
  gap: 2em;
}

.image-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em;
  color: white;
  gap: 0.2em;
  position: absolute;
  bottom: 0;
}

.logo img {
  width: clamp(100px, 10vw, 200px);
  height: auto;
}

.image-footer > a {
  text-decoration: underline;
}

.form-body {
  background-color: var(--form-bg);
}

.header {
  display: flex;
  font-size: 1.5em;
  flex-direction: column;
  gap: 1em;
  max-width: 80%;
  font-weight: bold;
  margin-bottom: 2em;
  margin-left: 2em;
  color: var(--text-color);
}

.form {
  background-color: var(--form-container-bg);
  border-radius: 1em;
  padding: 2em;
  color: var(--text-color);
}

.form-block {
  display: flex;
  justify-content: space-evenly;
}
.form-block > p {
  display: flex;
  flex-direction: column;
  margin-top: 1em;
  gap: 0.3em;
  font-weight: 800;
}

.form-block > p > input {
  padding: 0.6em;
  border: 1px solid #e5e7eb;
  border-radius: 1em;
  background-color: var(--input-bg);
  color: var(--text-color);
}

.form-block > p > input:invalid {
  border: 1px solid red;
}

.form-block > p > input:valid {
  border: 1px solid green;
}

.form-block > p > input:focus {
  box-shadow: 5px 2px 2px black;
}

.button-container {
  width: 100%;
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--form-container-bg);
}

.button-container > button {
  padding: 0.8em;
  font-weight: bold;
  border: none;
  margin-top: 2em;
  border-radius: 1em;
  background-color: #596d48;
  color: white;
}

#login {
  color: #596d48;
  font-weight: bold;
}
