/* Microsoft Login Clone — minimal CSS replicating MS Converged Sign-In look */

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: #1b1a19;
  background-color: #f2f2f2;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  flex-direction: column;
  background-image: url('../assets/bg.svg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  min-height: 100vh;
}

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

.card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  padding: 44px;
}

.logo {
  width: 108px;
  height: auto;
  margin-bottom: 16px;
}

.back-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #1b1a19;
  font-size: 13px;
}

.back-row .back {
  background: none;
  border: none;
  color: #1b1a19;
  cursor: pointer;
  padding: 0;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}

.back-row .back:hover { text-decoration: underline; }

.title {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.25;
  color: #1b1a19;
  margin-bottom: 12px;
}

.subtitle {
  font-size: 15px;
  color: #1b1a19;
  margin-bottom: 16px;
  line-height: 1.4;
}

.field {
  position: relative;
  margin-bottom: 16px;
}

.field input[type="email"],
.field input[type="password"],
.field input[type="text"],
.field input[type="tel"] {
  width: 100%;
  border: none;
  border-bottom: 1px solid #666;
  outline: none;
  background: transparent;
  padding: 6px 0 8px 0;
  font-family: inherit;
  font-size: 15px;
  color: #1b1a19;
}

.field input:focus { border-bottom-color: #0067b8; border-bottom-width: 2px; padding-bottom: 7px; }
.field input::placeholder { color: #605e5c; }

.error {
  color: #e81123;
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 12px;
  display: none;
}

.error.show { display: block; }

.helper-link {
  display: block;
  font-size: 13px;
  color: #0067b8;
  text-decoration: none;
  margin-bottom: 24px;
}

.helper-link:hover { text-decoration: underline; }

.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.btn {
  display: inline-block;
  min-width: 108px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #0067b8;
  background: #0067b8;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  text-align: center;
  line-height: 30px;
  text-decoration: none;
}

.btn:hover { background: #005da6; border-color: #005da6; }
.btn-secondary { background: #fff; color: #1b1a19; border: 1px solid #8a8886; }
.btn-secondary:hover { background: #f3f2f1; border-color: #1b1a19; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}

.checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #0067b8;
}

.footer {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 12px 24px;
  font-size: 12px;
  color: #605e5c;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 600px) {
  body {
    background-image: none;
    background-color: #fff;
  }
  .page { padding: 0; align-items: flex-start; }
  .card {
    max-width: 100%;
    padding: 24px;
    box-shadow: none;
    border: none;
  }
  .footer { padding: 12px; flex-wrap: wrap; gap: 8px; }
}

/* Spinner for "wartet auf Bot…" state */
.spinner-row {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: #605e5c;
}

.spinner-row.show { display: flex; }

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #e1dfdd;
  border-top-color: #0067b8;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
