/* ============================================================
   GUNTUR TOOLS – Design System
   Dark navy theme + vibrant accents
   ============================================================ */

/* ── Reset & Root Variables ── */
:root {
  --bg:        #0b1120;
  --panel:     #131d33;
  --panel2:    #192540;
  --panel3:    #1e2d4d;
  --text:      #e8eeff;
  --muted:     #8a99be;
  --muted2:    #64748b;
  --line:      rgba(99,137,232,.18);
  --accent:    #6389e8;
  --accent2:   #4f75d6;
  --success:   #34d399;
  --danger:    #f87171;
  --warn:      #fbbf24;

  /* Input-specific */
  --input-bg:  #0d1628;
  --input-border: rgba(99,137,232,.35);
  --input-focus: rgba(99,137,232,.7);
  --input-text: #e8eeff;
  --input-placeholder: #4e6090;
}

*  { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }

body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  background:
    radial-gradient(ellipse 60% 40% at 10% -5%, rgba(99,137,232,.22), transparent),
    radial-gradient(ellipse 40% 30% at 90% 110%, rgba(79,117,214,.14), transparent),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── Top Navigation ── */
.top {
  height: 64px;
  padding: 0 clamp(16px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(11,17,32,.90);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.top strong { font-size: 15px; letter-spacing: .01em; }

.pill {
  margin-left: 10px;
  padding: 3px 10px;
  border: 1px solid rgba(52,211,153,.35);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── Layout ── */
.wrap {
  width: min(1100px, calc(100% - 32px));
  margin: 48px auto;
}

/* ── Hero ── */
.hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.hero p   { color: var(--muted); font-size: 15px; }

/* ── Dashboard Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.tool-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  transition: .18s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.tool-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99,137,232,.55);
  box-shadow: 0 16px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(99,137,232,.2);
}
.tool-card .icon {
  min-width: 58px; height: 58px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #4f75d6, #6389e8);
  font-weight: 900; font-size: 13px; letter-spacing: .03em;
  box-shadow: 0 4px 16px rgba(99,137,232,.3);
}
.tool-card h2  { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
.tool-card p   { color: var(--muted); line-height: 1.55; font-size: 14px; }
.tool-card span { font-weight: 700; color: var(--accent); font-size: 13px; }

/* ── Secure Info Box ── */
.secure-box {
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(99,137,232,.08);
  border: 1px solid rgba(99,137,232,.22);
  border-radius: 12px;
  color: #a8bfef;
  font-size: 13px;
}

/* ── Buttons ── */
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: var(--text);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: .15s;
}
.ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(99,137,232,.4);
  color: #fff;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, #4f75d6, #6389e8);
  border: 1px solid rgba(99,137,232,.6);
  color: #fff;
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: .15s;
  box-shadow: 0 4px 20px rgba(99,137,232,.35);
}
.primary:hover {
  background: linear-gradient(135deg, #5a82e4, #7096f2);
  box-shadow: 0 6px 28px rgba(99,137,232,.5);
  transform: translateY(-1px);
}
.primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── Login Page ── */
.login-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: min(420px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 24px 64px rgba(0,0,0,.45);
}

.logo {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, #4f75d6, #6389e8);
  font-weight: 900; font-size: 14px; letter-spacing: .03em;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(99,137,232,.35);
}

.login-card h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.login-card > p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }

.login-card label {
  display: block;
  margin: 16px 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.login-card input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--input-text);
  padding: 12px 14px;
  font-size: 14px;
  transition: .15s;
  outline: none;
}
.login-card input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,137,232,.2);
}
.login-card input::placeholder { color: var(--input-placeholder); }

.alert {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(248,113,113,.1);
  border: 1px solid rgba(248,113,113,.3);
  color: #fca5a5;
  font-size: 14px;
  margin: 12px 0;
}

.foot {
  color: var(--muted2);
  font-size: 11px;
  margin-top: 16px;
  text-align: center;
}

/* ── Responsive ── */
@media (max-width: 720px) {
  .cards   { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
