/* auth.css — muted / professional color update */

/* === Theme variables (easy to tweak) === */
:root{
  --bg-top: #f3f6fa;        /* very light cool-gray */
  --bg-bottom: #eef1f6;     /* subtle gradient */
  --card-bg: #ffffff;       /* card background */
  --muted-text: #495057;    /* primary text */
  --subtle-text: #6b7280;   /* secondary text */
  --accent-1: #2563eb;      /* calm blue (for links & small accents) */
  --accent-2: #0f172a;      /* deep slate for headings */
  --btn-grad-start: #2b6cb0;/* button gradient start (muted blue) */
  --btn-grad-end: #1e3a8a;  /* button gradient end (deep indigo) */
  --btn-warm-start: #3b82f6;/* alternative button tone if needed */
  --input-bg: #f7f8fb;      /* input container background */
  --shadow: rgba(15, 23, 42, 0.06);
  --border: rgba(15,23,42,0.06);
  --radius: 12px;
}

/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Background === */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Subtle cool gradient */
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  color: var(--muted-text);
}

/* === Auth Card === */
.auth-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px var(--shadow);
  width: 360px;
  text-align: center;
  border: 1px solid var(--border);
  animation: fadeIn 320ms ease both;
}

/* Branding */
.brand-area {
  margin-bottom: 18px;
}
.brand-logo {
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(43,108,176,0.08), rgba(30,58,138,0.06));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-2);
  margin-top: 6px;
}

/* Headline */
.headline {
  font-size: 18px;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-weight: 600;
}

/* kosh logo + forgot */
.kosh-logo {
  width: 140px;
  height: auto;
  display: block;
  margin: 0 auto 14px auto;
}

/* forgot */
.forgot {
  display: block;
  text-align: right;
  margin: 14px 0 12px;
  font-size: 0.95rem;
  color: var(--subtle-text);
}

/* Inputs */
.input-wrap {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border-radius: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid transparent;
}
.input-wrap:focus-within {
  border-color: rgba(37,99,235,0.12);
  box-shadow: 0 4px 12px rgba(37,99,235,0.06);
}
.input-wrap .icon {
  margin-right: 8px;
  font-size: 16px;
  color: var(--subtle-text);
}
.input-wrap input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 14px;
  color: var(--muted-text);
}
.password-toggle,
.password-toggle-signup,
.password-toggle-signup-confirm {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--subtle-text);
}

/* Buttons base */
button {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.16s ease-in-out;
  border-radius: 10px;
  font-family: inherit;
}

/* === Gradient Button (Login / Signup) === */
.gradient-btn {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--btn-grad-start) 0%, var(--btn-grad-end) 100%);
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.08);
  letter-spacing: 0.1px;
  font-size: 15px;
}
.gradient-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
  opacity: 0.98;
}

/* Alternative subtle gradient (previous warm gradient replaced) */
.gradient-btn--alt {
  background: linear-gradient(90deg, #3b82f6 0%, #1e40af 100%);
}

/* Social buttons */
.social-btn {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  color: var(--accent-2);
  font-size: 14px;
}
.social-btn img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
.social-btn:hover {
  background: #fbfdff;
  box-shadow: 0 6px 18px rgba(15,23,42,0.04);
}

/* Divider */
.divider {
  text-align: center;
  margin: 14px 0;
  color: var(--subtle-text);
  font-size: 13.5px;
  position: relative;
}
.divider span {
  background: var(--card-bg);
  padding: 0 10px;
  position: relative;
  z-index: 1;
}
.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 6%;
  height: 1px;
  width: 88%;
  background: rgba(15,23,42,0.06);
  z-index: 0;
}

/* Footer links */
.signup-footer {
  font-size: 14px;
  color: var(--subtle-text);
}
.signup-footer a {
  color: var(--accent-1);
  text-decoration: none;
  font-weight: 600;
}
.signup-footer a:hover {
  text-decoration: underline;
}

/* Accessibility: focus */
:focus {
  outline: 3px solid rgba(37,99,235,0.12);
  outline-offset: 2px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Small responsive tweaks */
@media (max-width: 420px) {
  .auth-card { width: calc(100% - 32px); padding: 1.25rem; border-radius: 12px; }
  .brand-name { font-size: 18px; }
  .headline { font-size: 16px; }
}
