* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ig-grad: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  --card: rgba(255, 255, 255, 0.95);
  --text: #262626;
  --muted: #8e8e8e;
  --border: rgba(255, 255, 255, 0.4);
  --blue: #0095f6;
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(135deg, #feda75 0%, #fa7e1e 20%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  background-size: 300% 300%;
  animation: bgshift 18s ease infinite;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

@keyframes bgshift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card {
  background: var(--card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 30px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  animation: cardin 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardin {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.card-header {
  text-align: center;
  margin-bottom: 24px;
}

.card-header .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--ig-grad);
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(214, 41, 118, 0.3);
}

.card-header h1 {
  font-size: 22px;
  font-weight: 800;
  background: var(--ig-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.card-header p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

form label {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  color: #444;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

form input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 16px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  font-size: 15px;
  background: #fafafa;
  transition: all .2s;
  text-transform: none;
  letter-spacing: 0;
}

form input:focus {
  outline: none;
  border-color: #d62976;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(214, 41, 118, 0.1);
}

#submit-btn {
  margin-top: 12px;
  width: 100%;
  background: var(--ig-grad);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s;
  box-shadow: 0 6px 16px rgba(214, 41, 118, 0.35);
}

#submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(214, 41, 118, 0.45);
}

#submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

.form-msg {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  display: none;
  text-align: center;
  font-weight: 500;
}
.form-msg.show { display: block; animation: msgin 0.3s ease; }
.form-msg.ok { background: #e3f7ec; color: #167c3b; border: 1px solid #b6e5c8; }
.form-msg.err { background: #fdecec; color: #c0392b; border: 1px solid #f5c4c0; }

@keyframes msgin {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
