/* Apple / iCloud-inspired styling — personal demo, not affiliated with Apple */

:root {
  --blue: #2997ff;
  --blue-hover: #0071e3;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --field-bg: #fff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: linear-gradient(180deg, #f6f7fb 0%, #eef0f5 45%, #e6eaf2 100%);
}

.card {
  width: 100%;
  max-width: 360px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(150%) blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  padding: 40px 40px 32px;
  text-align: center;
}

.logo {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 14px;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 26px;
}

form { margin: 0; }

/* Stacked fields sharing one rounded outline, iCloud-style */
.field-group {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--field-bg);
  margin-bottom: 16px;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
}

.field + .field { border-top: 1px solid var(--line); }

.field input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 17px;
  padding: 15px 16px;
  color: var(--ink);
}

.field input::placeholder { color: var(--muted); }

/* Blue circular arrow submit button inside a field */
.go {
  border: 0;
  cursor: pointer;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 17px;
  line-height: 30px;
  transition: background 0.15s ease, opacity 0.15s ease;
  flex: 0 0 auto;
}
.go:hover { background: var(--blue-hover); }

/* Full-width primary button (used on reset page) */
.btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  background: var(--blue-hover);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  padding: 14px 16px;
  transition: background 0.15s ease;
}
.btn:hover { background: #0077ed; }

.remember {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--ink);
  margin: 4px 2px 22px;
}
.remember input { width: 16px; height: 16px; accent-color: var(--blue-hover); }

.links {
  margin-top: 22px;
  font-size: 14px;
}
.links a {
  color: var(--blue-hover);
  text-decoration: none;
}
.links a:hover { text-decoration: underline; }

.sep {
  height: 1px;
  background: var(--line);
  margin: 22px 0 18px;
}

.error {
  background: #fff2f2;
  border: 1px solid #ffd2d2;
  color: #b3261e;
  font-size: 14px;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  text-align: left;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin: -14px 0 22px;
  line-height: 1.4;
}

.demo-note {
  margin-top: 22px;
  font-size: 11px;
  color: var(--muted);
  max-width: 360px;
  text-align: center;
  line-height: 1.5;
}

.success-icon {
  font-size: 46px;
  color: #34c759;
  margin-bottom: 10px;
}
