/* @fretus/auth v1.0 — Login-UI im fretus Corporate Design */

/* HTML hidden-Attribut wirklich verstecken — schlägt display:flex etc. */
.fretus-auth [hidden] { display: none !important; }

.fretus-auth {
  --fa-cyan:       #0099CC;
  --fa-cyan-dark:  #006080;
  --fa-bg:         #f7f9fb;
  --fa-card-bg:    #ffffff;
  --fa-border:     #d9dee4;
  --fa-text:       #1a2530;
  --fa-muted:      #5b6976;
  --fa-error:      #c0392b;
  --fa-ok:         #2e7d32;
  --fa-ms-bg:      #2f2f2f;
  --fa-ms-hover:   #404040;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--fa-text);
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: var(--fa-bg);
  padding: 16px;
  box-sizing: border-box;
}

.fretus-auth .fa-card {
  background: var(--fa-card-bg);
  border: 1px solid var(--fa-border);
  border-radius: 12px;
  padding: 32px 28px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.05);
  box-sizing: border-box;
}

.fretus-auth .fa-header { text-align: center; margin-bottom: 8px; }
.fretus-auth .fa-logo {
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.5px;
  color: var(--fa-cyan);
  line-height: 1;
}
.fretus-auth .fa-logo-img {
  display: block;
  margin: 0 auto 4px;
  height: 96px;          /* quadratisches Logo prominent darstellen */
  width: 96px;
  object-fit: contain;
}
.fretus-auth .fa-claim {
  font-size: 12px;
  color: var(--fa-muted);
  margin-top: 10px;
  font-style: italic;
}

.fretus-auth h2 {
  margin: 24px 0 20px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: var(--fa-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---- Buttons ---- */
.fretus-auth .fa-btn {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  transition: opacity 0.15s, background 0.15s, transform 0.05s;
  box-sizing: border-box;
}
.fretus-auth .fa-btn:active { transform: scale(0.99); }
.fretus-auth .fa-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.fretus-auth .fa-btn-primary {
  background: var(--fa-cyan);
  color: white;
}
.fretus-auth .fa-btn-primary:hover { background: var(--fa-cyan-dark); }

.fretus-auth .fa-btn-secondary {
  background: #f0f3f6;
  color: var(--fa-text);
  font-weight: 500;
}
.fretus-auth .fa-btn-secondary:hover { background: #e1e6eb; }

.fretus-auth .fa-btn-microsoft {
  background: var(--fa-ms-bg);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.fretus-auth .fa-btn-microsoft:hover { background: var(--fa-ms-hover); }

.fretus-auth .fa-ms-logo {
  display: inline-block;
  width: 16px;
  height: 16px;
  background:
    linear-gradient(45deg, #f25022 50%, transparent 50%) 0 0/8px 8px no-repeat,
    linear-gradient(45deg, #7fba00 50%, transparent 50%) 8px 0/8px 8px no-repeat,
    linear-gradient(45deg, #00a4ef 50%, transparent 50%) 0 8px/8px 8px no-repeat,
    linear-gradient(45deg, #ffb900 50%, transparent 50%) 8px 8px/8px 8px no-repeat;
}

.fretus-auth .fa-btn-icon {
  width: auto;
  padding: 12px 14px;
  background: #f0f3f6;
  color: var(--fa-muted);
  font-weight: 700;
}

/* ---- Last-Email Row ---- */
.fretus-auth .fa-last-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.fretus-auth .fa-last-btn {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---- Divider ---- */
.fretus-auth .fa-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: #9aa5b1;
  font-size: 12px;
}
.fretus-auth .fa-divider::before,
.fretus-auth .fa-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--fa-border);
}

/* ---- Email-Input ---- */
.fretus-auth .fa-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--fa-muted);
}
.fretus-auth input[type=email],
.fretus-auth input[type=password] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  margin-top: 6px;
  border: 1px solid var(--fa-border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fretus-auth input[type=email]:focus,
.fretus-auth input[type=password]:focus {
  outline: none;
  border-color: var(--fa-cyan);
  box-shadow: 0 0 0 3px rgba(0,153,204,0.14);
}

.fretus-auth .fa-hint {
  font-size: 12px;
  color: var(--fa-muted);
  margin: -2px 0 14px;
  min-height: 1em;
  line-height: 1.4;
}
.fretus-auth .fa-hint strong { color: var(--fa-text); }

/* ---- Status ---- */
.fretus-auth .fa-status {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  min-height: 1.2em;
  line-height: 1.4;
}
.fretus-auth .fa-status:empty { display: none; }
.fretus-auth .fa-status.fa-info  { background: #eef6fb; color: var(--fa-cyan-dark); }
.fretus-auth .fa-status.fa-ok    { background: #e8f5e9; color: var(--fa-ok); }
.fretus-auth .fa-status.fa-error { background: #fdecea; color: var(--fa-error); }
