/* ═══════════════════════════════════════════════════════════════════════════════
   📁 FICHIER : app.css
   📂 CHEMIN : /components/common/app.css
   🎯 RÔLE : Compléments à koba.css pour l'espace "app" (formulaires, coquille
             façon Discord) — réutilise les variables définies dans koba.css,
             n'en redéfinit aucune.
   ═══════════════════════════════════════════════════════════════════════════════ */

.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.auth-logo {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: .1em;
  text-align: center;
  margin-bottom: .3rem;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-title {
  text-align: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.auth-field { margin-bottom: 1rem; }
.auth-label {
  display: block;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--text2);
  margin-bottom: .4rem;
}

.auth-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .7rem .85rem;
  color: var(--text);
  font-family: var(--font);
  font-size: .92rem;
  outline: none;
  transition: border-color .2s;
}
.auth-input:focus { border-color: var(--blue); }

.auth-submit {
  width: 100%;
  margin-top: .4rem;
  padding: .75rem;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.auth-submit:hover { opacity: .9; transform: translateY(-1px); }
.auth-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.auth-msg {
  font-size: .82rem;
  padding: .7rem .9rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid;
  display: none;
}
.auth-msg.show { display: block; }
.auth-msg.error { background: rgba(255,45,120,0.06); border-color: var(--pink); color: #ffb0d0; }
.auth-msg.success { background: rgba(0,255,136,0.06); border-color: var(--green); color: #b0ffd8; }

.auth-links { text-align: center; margin-top: 1.2rem; font-size: .82rem; color: var(--text2); }
.auth-links a { color: var(--blue); text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }

.auth-divider {
  display: flex; align-items: center; gap: .7rem;
  margin: 1.3rem 0; font-family: var(--mono); font-size: .62rem;
  letter-spacing: .1em; color: var(--text3);
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.oauth-buttons { display: flex; flex-direction: column; gap: .6rem; }
.oauth-btn {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .65rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg3); color: var(--text); font-weight: 600; font-size: .88rem;
  text-decoration: none; cursor: pointer; transition: all .2s;
}
.oauth-btn:hover { border-color: var(--border2); transform: translateY(-1px); }
.oauth-btn.discord:hover { border-color: rgba(88,101,242,0.5); color: #7289da; }
.oauth-btn.google:hover { border-color: rgba(66,133,244,0.5); color: #4285f4; }
