/* auth.css — Karka·ly login/register pages */
/* 2026-05-27-01 */

.auth-body {
  background: var(--bg-2);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 28px;
}

.auth-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 14px;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 28px;
}

.auth-error {
  background: var(--red-light);
  color: #791F1F;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid rgba(226,75,74,0.2);
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-link {
  font-size: 12px;
  color: var(--green);
  text-decoration: none;
  font-weight: 400;
}
.form-link:hover { text-decoration: underline; }

.form-hint { font-size: 11px; color: var(--text-3); font-weight: 400; }

.form-group input {
  padding: 9px 12px;
  border: 1px solid var(--border-med);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-1);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}
.form-group input:focus { border-color: var(--green); }
.form-group input::placeholder { color: var(--text-3); }

.auth-submit {
  width: 100%;
  padding: 10px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  margin-top: 4px;
}
.auth-submit:hover { background: var(--green-dark); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-3);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 20px;
}

.auth-link {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-terms {
  font-size: 11px;
  color: var(--text-3);
  text-align: center;
  margin-top: 14px;
  line-height: 1.6;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-med);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text-1);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-google:hover {
  background: var(--bg-2);
  border-color: var(--border-2);
}
