/* Cinedash — Auth-Seiten Styles (erweitert styles.css) */

/* Auth-Layout */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}

.auth-wrap .bg-grid,
.auth-wrap .bg-glow { position: absolute; }

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.auth-card-wide { max-width: 720px; }

.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.auth-head p { color: var(--text-dim); font-size: 15px; }

/* Forms */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}
.field input,
.field textarea {
  background: #0f0f15;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.18);
  background: #12121a;
}
.field input::placeholder { color: #555a68; }
.field input[disabled],
.field textarea[disabled] { opacity: 0.5; cursor: not-allowed; }

.field-hint {
  font-size: 12px;
  color: var(--text-dimmer);
  margin-top: 2px;
}

.field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.field-row a { color: var(--accent); }
.field-row a:hover { text-decoration: underline; }

/* Error box */
.err {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.35);
  color: #fca5a5;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.err.visible { display: block; }

/* Success box */
.ok {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.35);
  color: #86efac;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.ok.visible { display: block; }

.auth-foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--text-dim);
}
.auth-foot a { color: var(--accent); }
.auth-foot a:hover { text-decoration: underline; }

/* Account-Seite */
.account-section {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
.account-section h2 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.account-meta {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 16px;
  line-height: 1.7;
}
.account-meta strong { color: var(--text); font-weight: 500; }

.danger-section { border-color: rgba(239,68,68,0.25); }
.btn-danger {
  background: rgba(239,68,68,0.1);
  border-color: rgba(239,68,68,0.35);
  color: #fca5a5;
}
.btn-danger:hover { background: rgba(239,68,68,0.18); }

/* Invites */
.invite-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.invite-meta h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.invite-meta p { font-size: 13px; color: var(--text-dim); }
.invite-color {
  width: 8px; height: 40px; border-radius: 4px;
  margin-right: 12px;
  flex-shrink: 0;
}
.invite-row { display: flex; align-items: center; flex: 1; }

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 40px 20px;
  font-size: 15px;
}

/* Legal-Pages */
.legal-wrap {
  max-width: 800px;
  margin: 60px auto;
  padding: 0 24px;
}
.legal-wrap h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.legal-wrap h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.legal-wrap p,
.legal-wrap ul { color: var(--text-dim); margin-bottom: 14px; font-size: 15px; line-height: 1.7; }
.legal-wrap ul { padding-left: 24px; }
.legal-wrap a { color: var(--accent); }
.legal-wrap a:hover { text-decoration: underline; }

/* Small responsive tweaks */
@media (max-width: 520px) {
  .auth-card { padding: 32px 24px; border-radius: 14px; }
  .auth-head h1 { font-size: 24px; }
}
