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

:root {
  --bg:          #1a100a;
  --border:      rgba(255,220,180,0.14);
  --text-1:      rgba(255,245,230,0.95);
  --text-2:      rgba(255,230,200,0.60);
  --text-3:      rgba(255,220,180,0.32);
  --teal:        #8aba7a;
  --teal-dim:    rgba(138,186,122,0.15);
  --blur:        blur(22px) saturate(140%);
  --radius:      16px;
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'DM Sans', sans-serif;
}

html, body { height: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-image: url('ithanga.jpeg');
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow-x: hidden;
  padding: 60px 16px 60px;
}

/* Dark warm overlay — matches finance page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 8, 3, 0.72) 0%,
    rgba(30, 18, 8, 0.60) 40%,
    rgba(20, 35, 10, 0.80) 100%
  );
  z-index: 0;
  pointer-events: none;
}

/* Ambient blobs */
.floating-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: drift 22s ease-in-out infinite alternate;
}
.blob1 { width: 480px; height: 480px; top: -140px; right: -60px;  background: radial-gradient(circle, rgba(200,100,60,0.18), transparent 70%); }
.blob2 { width: 360px; height: 360px; bottom: -100px; left: -60px; background: radial-gradient(circle, rgba(100,160,80,0.16), transparent 70%); animation-delay: -10s; }

@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(24px,16px) scale(1.06); }
}

/* Card */
.card {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  margin: auto 0;
  background: rgba(18, 10, 4, 0.60);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 48px 44px 44px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,220,160,0.08);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255,210,150,0.20), transparent);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 36px;
}

.logo-icon {
  width: 36px; height: 36px;
  background: rgba(138,186,122,0.16);
  border: 1px solid rgba(138,186,122,0.32);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 18px; height: 18px; }

.logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.03em;
}

/* Heading */
h1 {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 300;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 6px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.subtitle {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 32px;
  font-weight: 300;
}

/* Fields */
.field { margin-bottom: 16px; }

label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

input {
  width: 100%;
  height: 46px;
  background: rgba(15, 8, 3, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 14px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-1);
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  box-shadow: inset 0 1px 0 rgba(255,220,160,0.04);
}
input::placeholder { color: var(--text-3); }
input:hover {
  border-color: rgba(255,220,180,0.22);
  background: rgba(20,10,4,0.75);
}
input:focus {
  border-color: rgba(138,186,122,0.45);
  background: rgba(10,25,8,0.70);
  box-shadow: 0 0 0 3px rgba(138,186,122,0.10), inset 0 1px 0 rgba(138,186,122,0.06);
}

/* Row */
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 24px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.remember input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--teal);
  cursor: pointer;
}
.remember span {
  font-size: 12.5px;
  color: var(--text-2);
}

.forgot {
  font-size: 12.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s;
}
.forgot:hover { color: var(--teal); }

/* Sign in button */
.btn {
  width: 100%;
  height: 48px;
  background: rgba(138,186,122,0.18);
  border: 1px solid rgba(138,186,122,0.38);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--teal);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  letter-spacing: 0.03em;
}
.btn:hover {
  background: rgba(138,186,122,0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(138,186,122,0.15);
}
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* Divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.divider span {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.05em;
}

/* Social */
.social-row { display: flex; gap: 10px; }

.social-btn {
  flex: 1;
  height: 42px;
  background: rgba(15,8,3,0.55);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  color: var(--text-2);
  font-size: 13px;
  font-family: var(--font-body);
}
.social-btn:hover {
  background: rgba(138,186,122,0.10);
  border-color: rgba(138,186,122,0.28);
  color: var(--teal);
}

/* Sign up */
.signup {
  text-align: center;
  margin-top: 26px;
  font-size: 12.5px;
  color: var(--text-3);
}
.signup a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}
.signup a:hover { text-decoration: underline; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,220,160,0.12); border-radius: 3px; }
