﻿/* === FRONT-PAGE + LOGIN STYLE === */
:root {
  --ajhs-blue: #003B80;
  --ajhs-blue-faded: rgba(0,59,128,0.4);
  --ajhs-lightblue: #e9f0fa;
  --ajhs-hoverblue: #002a5c;
}

/* === GLOBAL === */
body {
  background: #fff;
  font-family: 'Segoe UI', sans-serif;
  color: #222;
  line-height: 1.6;
  margin: 0;
}

/* === HEADER BAR === */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 2rem;
  border-bottom: 1px solid #eee;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.topbar img { height: 70px; width: auto; }

/* === BUTTONS === */
.btn-start {
  background-color: var(--ajhs-blue);
  color: #fff !important;
  font-weight: 600;
  border: none;
  border-radius: 2rem;
  padding: .55rem 1.2rem;
  font-size: .9rem;
  transition: all .12s ease-in-out;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.btn-start:hover {
  background-color: var(--ajhs-hoverblue);
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,59,128,0.25);
}
.btn-start:active {
  transform: translateY(.5px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  background-color: #001f47 !important;
}
.btn-login {
  background: #fff;
  color: #333;
  font-weight: 600;
  border: 1px solid #ccc;
  border-radius: 2rem;
  padding: .55rem 1.2rem;
  font-size: .9rem;
  transition: all .12s ease-in-out;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.btn-login:hover {
  background: #f9fbff;
  color: var(--ajhs-blue);
  border-color: var(--ajhs-blue);
  transform: translateY(-1px);
  box-shadow: 0 3px 5px rgba(0,59,128,0.18);
}
.btn-login:active {
  transform: translateY(.5px);
  background: #e9e9e9;
  color: #777;
  border-color: #bbb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn-primary {
  background-color: var(--ajhs-blue) !important;
  border: none !important;
}
.btn-primary:hover { background-color: var(--ajhs-hoverblue) !important; }

/* === FORM ELEMENTS === */
.form-check-input {
  width: 1.2em;
  height: 1.2em;
  border: 2px solid var(--ajhs-blue);
  cursor: pointer;
}
.form-check-input:checked {
  background-color: var(--ajhs-blue);
  border-color: var(--ajhs-blue);
}
.form-check-label {
  font-weight: 500;
  color: #000;
}
.section-description {
  color: #444;
  font-size: .85rem;
  margin-top: .25rem;
}

/* === TYPOGRAPHY === */
h2, h4 {
  color: var(--ajhs-blue);
  font-weight: 600;
}
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h4 { font-size: 1.1rem; margin-top: 1.5rem; }

a { color: var(--ajhs-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === LAYOUT === */
.main-wrapper {
  max-width: 1000px;
  margin: auto;
  padding: 6rem 1.5rem 4rem 1.5rem;
}

ul { margin: 0; padding-left: 1.2rem; }

.section-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ajhs-blue);
  margin-top: 2rem;
  margin-bottom: .5rem;
}

/* === BOXES === */
.contact-box {
  background: var(--ajhs-lightblue);
  border: 1px solid var(--ajhs-blue);
  border-radius: .25rem;
  padding: 1rem 1.5rem;
  font-size: .9rem;
  margin-top: 2.8rem;
}
.contact-box a:hover { text-decoration: underline; }

/* === MISC === */
.note {
  color: var(--ajhs-blue);
  font-size: 1rem;
  font-style: italic;
  margin-top: 1.5rem;
}
.app-id {
  position: fixed;
  bottom: 12px;
  left: 22px;
  color: #ccc;
  font-size: 0.8rem;
}

/* === BTN-NO UNDERLINE === */
.btn,
.btn:link,
.btn:visited {
  text-decoration: none !important;
}
.btn:hover,
.btn:focus,
.btn:active {
  text-decoration: none !important;
}

/* === FORM FOCUS STYLE (THIN BLUE BORDER, NO SHADOW) === */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
  border: 1px solid #ccc;
  border-radius: .25rem;
  box-shadow: none !important;
  transition: border-color .15s ease-in-out;
}
input:focus,
textarea:focus,
select:focus {
  outline: none !important;
  border-color: var(--ajhs-blue) !important;
  box-shadow: none !important;
}

/* === ALERT SUCCESS === */
.alert-success {
  border: 1px solid #c5e6c0;
  background-color: #e9f7e5;
  color: #2c662d;
  border-radius: .25rem;
}

/* === SMALL HELP TEXT UNDER INPUTS === */
small.text-muted {
  font-size: 0.72rem !important;
  color: #777 !important;
  line-height: 1.3;
}

/* === LIFT FORM TO TOP (FOR REGISTRATION AND SIMILAR PAGES) === */
.main-wrapper.form-top {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* === FORM CONTROL – LITT MER LUFT MELLOM TEKST OG KANT === */
.form-control,
.form-select {
  /* økt padding */
  font-size: 0.9rem !important;       /* litt større tekst */
  line-height: 1.4 !important;
}
