/* AUTIMA® Passworthelper – Stylesheet */

:root {
  --blue-dark: #0a325a;
  --blue-light: #78aad2;
  --orange: #ff9b19;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-border: #dde3ea;
  --text-dark: #1a1a2e;
  --text-muted: #6b7a90;
  --error: #e53e3e;
  --success: #38a169;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--gray-light);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.header img {
  height: 48px;
  width: auto;
}

/* Card */
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(10, 50, 90, 0.10);
  padding: 40px 36px;
  width: 100%;
  max-width: 520px;
}

.card h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.card p.subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Trust-Hinweis */
.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef6ff;
  border: 1px solid var(--blue-light);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--blue-dark);
  margin-bottom: 24px;
}

.trust-badge svg {
  flex-shrink: 0;
  color: var(--blue-light);
}

/* Formular */
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue-dark);
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(120, 170, 210, 0.15);
}

/* Passwort-Wrapper */
.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 44px;
}

.toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  display: flex;
  align-items: center;
}

.toggle-pw:hover {
  color: var(--blue-dark);
}

/* Tool-Block */
.tool-block {
  background: var(--gray-light);
  border: 1.5px solid var(--gray-border);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  position: relative;
}

.tool-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.tool-block-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue-dark);
}

.btn-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.15s;
}

.btn-remove:hover {
  background: #fee;
  color: var(--error);
}

/* Buttons */
.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
}

.btn-primary:hover {
  background: #e88a0a;
}

.btn-primary:active {
  transform: scale(0.99);
}

.btn-primary:disabled {
  background: var(--gray-border);
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: 11px;
  background: var(--white);
  color: var(--blue-dark);
  border: 1.5px solid var(--blue-light);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-secondary:hover {
  background: #eef6ff;
}

/* Erfolgs-/Fehler-Seite */
.result-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  text-align: center;
}

.card.success h1 {
  color: var(--success);
}

.card.error h1 {
  color: var(--error);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}

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

/* Footer */
.footer {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 560px) {
  .card {
    padding: 28px 20px;
  }
}
