/* auth-server/static/auth.css
   Microsoft/Google'ın kimlik doğrulama sayfalarına yakın, sade, ciddi bir
   görsel dil: merkezi kart, yumuşak gölge, tek vurgu rengi, bol boşluk. */

:root {
  --bg: #f7f7f8;
  --card-bg: #ffffff;
  --border: #e3e3e6;
  --text: #1b1b1f;
  --text-secondary: #5f6368;
  --accent: #0b57d0;
  --accent-hover: #0a4bb5;
  --danger: #c5221f;
  --success: #1e8e3e;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 40px 32px;
  margin: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b57d0, #1a73e8 60%, #4285f4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

h1 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 28px;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
}

input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.12);
}

input:invalid:not(:placeholder-shown) {
  border-color: var(--danger);
}

.helper-text {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
  line-height: 1.4;
}

button[type="submit"] {
  width: 100%;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 8px;
  font-family: inherit;
}

button[type="submit"]:hover:not(:disabled) { background: var(--accent-hover); }
button[type="submit"]:disabled { background: #9aa0a6; cursor: not-allowed; }

.status-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  min-height: 20px;
  margin-top: 4px;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

.error-box {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: #fce8e6;
  border: 1px solid #f6c6c3;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 18px;
  line-height: 1.5;
}

.error-box.visible { display: flex; }

.success-box {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: #e6f4ea;
  border: 1px solid #b7e1c1;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--success);
  margin-bottom: 18px;
  line-height: 1.5;
}

.success-box.visible { display: flex; }

.footer-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-link a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

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

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: #9aa0a6;
  line-height: 1.5;
}

.result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.result-icon.ok { background: #e6f4ea; color: var(--success); }
.result-icon.error { background: #fce8e6; color: var(--danger); }

.result-icon svg { width: 28px; height: 28px; }

.text-center { text-align: center; }

.small-print {
  font-size: 12px;
  color: #9aa0a6;
  text-align: center;
  margin-top: 20px;
  word-break: break-all;
}
