
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  color: #232323;
  padding: 0;
  margin: 0;
  background: url('/Content/Images/background.jpg') no-repeat center center fixed;
  background-size: cover;
}

header,
footer,
nav,
section {
  display: block;
}

/* Styles for basic forms */
a {
  font-family: 'Roboto', sans-serif;
  color: #232323;
  text-decoration: none;
}

fieldset {
  max-width: min(100% - 2rem,25rem);
  padding: 2rem;
  margin: 40px auto;
  background-color: rgba(255, 255, 255);
  box-shadow: 0 0.125rem 0.75rem 0.25rem rgba(0, 0, 0, 0.22);
  border-radius: 0.25rem;
  border: none;
}

legend {
  font-size: 19px;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 1.875rem
}

textarea {
  min-height: 75px;
}

.editor-label {
  margin: 1em 0 0 0;
}

.editor-field {
  margin: 0.5em 0 0 0;
}

fieldset label {
  display: block;
  width: 50%;
  margin: 8px 0 4px 0;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
}

fieldset input[type="text"],
fieldset input[type="password"],
fieldset input[type="email"] {
  width: 100%;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 20px;
  border: 1px solid #C3C3C6;
  border-radius: 8px;
  margin-bottom: 4px;
  background-color: #FFFFFF;
  transition: box-shadow 0.2s;
}

  /* Focus State for Inputs */
  fieldset input[type="text"]:focus,
  fieldset input[type="password"]:focus,
  fieldset input[type="email"]:focus {
    box-shadow: 0 0 5px rgba(66, 145, 189, 0.5);
    outline: none;
  }

/* Submit Button Styling */
fieldset input[type="submit"] {
  width: 100%;
  padding: 8px 12px;
  background-color: #4291BD;
  border: none;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
  line-height: 18px;
  text-transform: none;
  min-height: 46px;
  margin-top: 12px !important;
}

  /* Submit Button Hover State */
  fieldset input[type="submit"]:hover {
    background-color: #367AA3;
  }

/* "Glömt lösenordet?" Link Styling */
.forgot-password {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

  /* Ensure password input takes available space */
  .forgot-password input[type="password"] {
    flex: 1;
  }

/* Style the forgot link */
.forgot-link a {
  font-size: 14px;
  color: #4291BD;
  text-decoration: none;
  text-decoration: underline;
}

  .forgot-link a:hover {
  }

/* Styles for validation helpers */
.error {
  color: #FA5050;
  background-color: #ffffff;
}

.field-validation-error {
  color: #ff0000;
}

.field-validation-valid {
  display: none;
}

.input-validation-error {
  border: 1px solid #ff0000;
  background-color: #ffffff;
}

.validation-summary-errors {
  font-weight: 700;
  color: #ff0000;
}

.validation-summary-valid {
  display: none;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Header Styling */
h1 {
  margin-top: 0;
  background-color: #000000;
  padding: 10px;
  text-align: center;
}

  h1 img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

h2 {
  font-size: 19px;
  line-height: 32px;
  font-weight: 700;
  font-style: normal;
  margin-bottom: 1rem
}

/* Navigation Styling */
.first {
  overflow: hidden;
  margin: 0 auto 20px auto;
  display: block;
  width: 100%;
  max-width: 620px;
  padding: 0;
  list-style: none;
}

  .first li {
    float: left;
    padding: 0;
    margin: 0 8px 0 0;
  }

    .first li:last-child {
      margin-right: 0;
    }

  .first a {
    display: block;
    background-repeat: no-repeat;
    width: 300px;
    height: 150px;
    background-image: url(/content/images/account_dvtime.png);
    text-indent: -1500px;
  }

    .first a:hover {
      background-position: 0 -150px;
    }

  .first li:first-child a {
    background-image: url(/content/images/account_dvtime_create.png);
  }

/* Paragraph Styling within Fieldsets */
fieldset p {
  margin: 8px 0;
}

/* Media Queries for Responsive Design */
@media (max-width: 600px) {
  h1 {
    padding: 20px;
  }

    h1 img {
      height: 60px;
    }
}
