:root {
  --bg1: #2b293a;
  --bg2: #4d4963;
  --text: #e6edf3;
  --muted: #9aa7b4;
  --accent1: #ffcc00;
  --accent2: #ff8000;
  --card-bg: rgba(20, 27, 39, 0.78);
  --card-border: rgba(255, 255, 255, 0.08);
  --danger1: #ff4d4d;
  --danger2: #b30000;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --shadow-strong: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Generel styling */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, var(--bg1), var(--bg2));
  color: var(--text);
}

/* Container */
.container {
  max-width: 420px;
  margin: 60px auto;
  padding: 30px 26px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-sizing: border-box;
}

/* Titel styling */
.title {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 26px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Input-box styling */
.input-box {
  margin-bottom: 20px;
}

.input-box label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #d4dbe3;
  font-size: 0.95rem;
}

.input-box input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-size: 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.input-box input::placeholder {
  color: rgba(230, 237, 243, 0.45);
}

.input-box input:focus {
  border-color: var(--accent1);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

/* Submit knap */
.input-box.button input[type="submit"] {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #2b293a;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 128, 0, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.input-box.button input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 128, 0, 0.45);
  filter: brightness(1.05);
}

.input-box.button input[type="submit"]:active {
  transform: translateY(0) scale(0.98);
}

/* Login button */
.login-button {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  color: #2b293a;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  padding: 14px 20px;
  box-shadow: 0 8px 20px rgba(255, 128, 0, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 128, 0, 0.45);
  filter: brightness(1.05);
}

.login-button:active {
  transform: translateY(0) scale(0.98);
}

/* Fejlmeddelelse styling */
.error-message {
  color: #ff6b6b;
  background: rgba(255, 77, 77, 0.12);
  border: 1px solid rgba(255, 77, 77, 0.28);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
  padding: 10px 12px;
}

/* Signup-link styling */
.signup-link {
  text-align: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.signup-link a {
  color: var(--accent1);
  font-weight: 800;
  text-decoration: none;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Social login divider */
.option {
  position: relative;
  text-align: center;
  margin: 26px 0 20px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.option::before,
.option::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 34%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.option::before {
  left: 0;
}

.option::after {
  right: 0;
}

/* Social login styling */
.google,
.facebook {
  display: flex;
  justify-content: center;
  margin: 14px auto;
  width: 100%;
}

.google a,
.facebook a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  padding: 13px 18px;
  border-radius: 12px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

/* Google */
.google a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3f4f6;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.google a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 204, 0, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

/* Facebook */
.facebook a {
  background: linear-gradient(135deg, #3399ff, #0059b3);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 16px rgba(0, 89, 179, 0.28);
}

.facebook a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 89, 179, 0.42);
  filter: brightness(1.05);
}

.google a:active,
.facebook a:active {
  transform: translateY(0) scale(0.98);
}

/* Icon styling */
.google a i,
.facebook a i {
  margin-right: 8px;
  font-size: 14px;
  display: inline-block;
  width: 16px;
  height: 16px;
}

.google img,
.facebook img {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  display: inline-block;
}

/* Mobil */
@media (max-width: 520px) {
  .container {
    max-width: calc(100% - 32px);
    margin: 36px auto;
    padding: 24px 20px;
  }

  .title {
    font-size: 1.8rem;
  }

  .option::before,
  .option::after {
    width: 28%;
  }
}
