@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/auth-static/titillium-web-400.woff2") format("woff2");
}

@font-face {
  font-family: "Titillium Web";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/auth-static/titillium-web-600.woff2") format("woff2");
}

:root {
  --vossloh-green: #33ae33;
  --vossloh-green-dark: #2a9229;
  --text: rgba(0, 0, 0, 0.87);
  --muted: #666;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Titillium Web", Helvetica, Arial, sans-serif;
}

body {
  background-color: #5a6b5a;
  background-image: url("/auth-static/login-background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.vossloh-header {
  display: flex;
  align-items: center;
  height: 55px;
  padding: 12px 24px;
  background-color: #f8f8f8;
}

.vossloh-header-content {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.vossloh-logo {
  height: 50px;
}

.vossloh-header span {
  margin-left: 24px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 400px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 30px;
  border: 1px solid #ddd;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-card h1 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.login-card form,
.providers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-card input[type="text"],
.login-card input[type="password"] {
  padding: 10px;
  border: 1px solid #ccc;
  font-size: 14px;
  font-family: inherit;
}

.login-card input[type="text"]:focus,
.login-card input[type="password"]:focus {
  outline: none;
  border-color: var(--vossloh-green);
}

.sso-button {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: none;
  border-radius: 2px;
  background-color: var(--vossloh-green);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.sso-button:hover {
  background-color: var(--vossloh-green-dark);
}

.sso-button:focus-visible {
  outline: 3px solid var(--vossloh-green-dark);
  outline-offset: 2px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 13px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid #ddd;
}

.error-message {
  margin: 0;
  color: #c0392b;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 24px 0 8px;
  background-color: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.footer-links {
  display: flex;
}

.footer-links span {
  padding: 0 16px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  width: 24px;
  height: 24px;
}

.social-icon svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 720px) {
  .footer {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px;
  }
}

@media (max-width: 480px) {
  .vossloh-header {
    padding: 12px 16px;
  }

  .vossloh-logo {
    height: 36px;
  }

  .vossloh-header span {
    margin-left: 16px;
    font-size: 16px;
  }
}
