/* GLOBAL STYLING */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background-color: #fff;
}

a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* LOGIN WRAPPER AND CARD */
.login-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.login-card {
  background-color: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
  color: #212529;
  width: 100%;
  max-width: 600px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

/* FORM ELEMENTS */
.form-control {
  background-color: #ffffff;
  border: 1px solid #ced4da;
  color: #212529;
  border-radius: 0.5rem;
}

.form-control::placeholder {
  color: #6c757d;
  opacity: 1;
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: none;
}

/* LOGIN BUTTON */
#loginBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #fff;
  background-color: #0d6efd;
  border: 1px solid #0d6efd;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  transition: all 0.15s ease;
  width: 100%;
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
  text-decoration: none;
}

/* Hover and focus states for login button */
#loginBtn:hover,
#loginBtn:focus {
  background-color: #0b5ed7;
  border-color: #0b5ed7;
  color: #fff;
  text-decoration: none;
}

/* HEADER (matches dashboard style) */
.login-header {
  position: relative;
  z-index: 100;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.login-header .container-fluid {
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  max-width: 100%;
}

.navbar-brand {
  font-weight: 600;
  color: #0d6efd;
}

.navbar-brand img {
  height: 40px;
}

/* HOMEPAGE BUTTON */
.login-header .btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #fff;
  border: 1px solid #0d6efd;
  background-color: #0d6efd;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  transition: all 0.15s ease;
  text-decoration: none;
}

/* Hover and focus states for homepage button */
.login-header .btn-home:hover,
.login-header .btn-home:focus {
  color: #0d6efd;
  background-color: #fff;
  border-color: #0d6efd;
  text-decoration: none;
}

/* MOBILE LAYOUT (no hover effects on mobile) */
@media (max-width: 767px) {
  .login-header .container-fluid {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .login-wrapper {
    display: block !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .login-card {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 2rem 1.75rem !important;
    margin: 0 !important;
    border: 0;
  }

  #loginBtn {
    background-color: #0d6efd;
    color: #fff;
    border: 1px solid #0d6efd;
    transition: none !important;
  }

  /* Disable hover and focus effects on mobile devices */
  #loginBtn:hover,
  #loginBtn:focus,
  .login-header .btn-home:hover,
  .login-header .btn-home:focus {
    background-color: #0d6efd !important;
    color: #fff !important;
    border-color: #0d6efd !important;
    text-decoration: none !important;
  }

  body,
  .login-wrapper,
  .login-card {
    background-color: #ffffff !important;
  }
}

/* HEADER WRAPPER */
.login-header .navbar .container-fluid {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
}

/* FJERN padding fra container-fluid */
.login-header .container-fluid {
  padding: 0 !important;
}

/* SAMME padding som main */
.main-content-wrapper,
.login-header .navbar .container-fluid {
  padding-left: 1.25rem !important;
  padding-right: 1.25rem !important;
  box-sizing: border-box;
}

.main-content-wrapper,
.login-header .navbar .container-fluid {
  max-width: 1140px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
