@import url('https://fonts.googleapis.com/css?family=Comfortaa|Patua+One');

:root {
  --bg: #d8ebfa;
  --card: #ffffff;
  --ink: #233144;
  --muted: #5b6d86;
  --line: #d8e2eb;
  --accent: #2f76d2;
  --panel-shadow: rgba(8, 20, 40, 0.14);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Comfortaa', Arial, sans-serif;
  background: var(--bg);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-panel {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 20px var(--panel-shadow);
  padding: 24px 22px 18px;
}

.auth-brand {
  text-align: center;
  margin-bottom: 10px;
}

.auth-brand h1 {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: 'Patua One', sans-serif;
  font-size: 2.1rem;
  letter-spacing: 0.01em;
}

.auth-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-panel .form-control {
  border-radius: 10px;
  border: 1px solid var(--line);
  height: 44px;
  font-size: 1rem;
  box-shadow: none;
}

.auth-panel .form-control:focus {
  border-color: #b8cce2;
  box-shadow: 0 0 0 0.2rem rgba(47, 118, 210, 0.12);
}

.auth-panel .form-group label {
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 5px;
}

.auth-panel .btn,
.auth-panel .btn-default,
.auth-panel input[type='submit'] {
  margin-top: 8px;
  width: 100%;
  height: 44px;
  border: 1px solid #2a6ec6;
  border-radius: 10px;
  background: #2f76d2;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.auth-panel .btn:hover,
.auth-panel .btn-default:hover,
.auth-panel input[type='submit']:hover {
  background: #2767ba;
  border-color: #255eac;
}

.auth-links {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-links a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

.social-auth {
  margin-top: 14px;
  text-align: center;
}

.social-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.social-buttons {
  display: grid;
  gap: 8px;
}

.social-btn {
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  text-align: left;
  padding: 2px 12px 2px 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

.social-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(15, 36, 67, 0.14);
}

.social-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.social-icon-wrap {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f3f7fb;
  border: 1px solid #d8e2eb;
  display: grid;
  place-items: center;
}

.social-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.social-label {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.social-google {
  border-color: #e0d4cb;
  background: #fffaf8;
}

.social-facebook {
  border-color: #c9d8f0;
  background: #f7faff;
}

.social-microsoft {
  border-color: #cfe1ef;
  background: #f7fbff;
}

.ms-icon {
  padding: 0;
}

.social-icon-facebook {
  width: 20px;
  height: 20px;
}

.social-icon-microsoft {
  width: 18px;
  height: 18px;
}

.social-note {
  min-height: 18px;
  margin: 8px 0 0;
  color: #7d4f00;
  font-size: 0.88rem;
}

@media (max-width: 520px) {
  .auth-panel {
    padding: 18px 14px 14px;
    border-radius: 12px;
  }

  .auth-brand h1 {
    font-size: 1.85rem;
  }
}
