* {
  box-sizing: border-box;
}

:root {
  --primary-color: #192940;
  --primary-text-color: #ffffff;
  --text-color: #212427;
  --bg-color: #white;
}

@font-face {
  font-family: 'Work Sans';
  src: url('/assets/fonts/WorkSans-VariableFont_wght.ttf') format('truetype');
  font-style: normal;
}

body {
  font-family: 'Work Sans', sans-serif;
  margin: 0;
  padding: 0;

  height: 100vh;
  width: 100vw;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  padding-bottom: 10px;
}

h1 {
  font-size: 32px;
  font-weight: 700;
}

h2 {
  font-size: 24px;
  font-weight: 700;
}

.login-page {
  height: 100%;
  display: flex;

  .login-section {
    flex: 0 0 800px;
    display: flex;
    align-items: center;
    justify-content: center;

    .login-box {
      min-width: 360px;
      max-width: 460px;
      padding: 45px 45px 35px 45px;
      background-color: var(--bg-color);
  
      display: flex;
      flex-direction: column;
      align-items: stretch;
  
      .login-header {
        margin-bottom: 50px;
      }
  
      .login-form {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
  
        .forgot-password-link {
          font-size: 14px;
          font-weight: 500;
          align-self: flex-end;
        }
  
        .login-button {
          margin-top: 20px;
        }
  
        .error-message {
          color: red;
          font-size: 14px;
          font-weight: 400;
        }
      }
    }
  }

  .image-section {
    flex: 1 1 50%;
    background-image: url('/static/images/homehead-scaled.jpg');

    /* Center and scale the image nicely */
    background-position: right 20% bottom 50%;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

input[type='text'],
input[type='email'],
input[type='password'] {
  font-size: 16px;
  padding: 10px 20px;
  border: 1px solid lightgrey;
  border-radius: 8px;
}

button {
  font-size: 16px;
  padding: 10px;
  color: var(--primary-text-color);
  border: 0;
  border-radius: 8px;
  background-color: var(--primary-color);
  cursor: pointer;

  position: relative;
}

button::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: 0.3s;
}

button:hover::before {
  background: rgba(255, 255, 255, 0.2);
}

.intro-text {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-color);
}
