@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

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

/* ─── Body ────────────────────────────────────── */
body, html {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: #0d1117;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ─── Background Image ────────────────────────── */
.background {
  background-image: url('7.jpg');
  background-size: cover;
  background-position: center;
  position: fixed;
  inset: 0;
  z-index: -1;
  /* Not too dark — only 55% dimming */
  filter: brightness(0.45) saturate(0.7);
}

/* ─── Login Card ──────────────────────────────── */
.login-box {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 44px 40px;
  border-radius: 20px;
  width: 92%;
  max-width: 440px;
  text-align: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 0 1px rgba(26, 100, 255, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(26, 100, 255, 0.12);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translate(-50%, -46%); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* ─── Logo ────────────────────────────────────── */
.login-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto 14px;
  border-radius: 12px;
  filter: drop-shadow(0 4px 14px rgba(26, 100, 255, 0.5));
}

/* ─── Brand ───────────────────────────────────── */
.brand-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
  line-height: 1;
}

.brand-name span { color: #3b7cff; }

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 28px;
}

/* ─── Heading ─────────────────────────────────── */
h2 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 22px;
  opacity: 0.85;
}

/* ─── Inputs ──────────────────────────────────── */
.textbox {
  margin-bottom: 14px;
  text-align: left;
}

.textbox input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.textbox input::placeholder {
  color: rgba(255,255,255,0.4);
}

.textbox input:focus {
  border-color: #3b7cff;
  background: rgba(59, 124, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(59, 124, 255, 0.2);
}

/* ─── Options Row ─────────────────────────────── */
.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

.options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.options input[type="checkbox"] {
  accent-color: #3b7cff;
  width: 14px;
  height: 14px;
}

.options a {
  color: #3b7cff;
  text-decoration: none;
  transition: color 0.2s;
}
.options a:hover { color: #6d9fff; }

/* ─── Button ──────────────────────────────────── */
.btn {
  width: 100%;
  padding: 13px;
  border: none;
  background: #3b7cff;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(59,124,255,0.4);
}

.btn:hover {
  background: #2966e8;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(59,124,255,0.5);
}

.btn:active { transform: translateY(0); }

/* ─── Error ───────────────────────────────────── */
.error {
  background: rgba(255,80,80,0.15);
  border: 1px solid rgba(255,80,80,0.4);
  color: #ff8080;
  border-radius: 8px;
  padding: 10px 13px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  text-align: left;
}

/* ─── Register Link ───────────────────────────── */
.register {
  margin-top: 18px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

.register a {
  color: #3b7cff;
  text-decoration: none;
  font-weight: 500;
}
.register a:hover { color: #6d9fff; }

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 480px) {
  .login-box { padding: 32px 22px; }
  .brand-name { font-size: 1.5rem; }
  .login-logo { width: 80px; height: 80px; }
  .btn { padding: 12px; font-size: 0.95rem; }
}

@media (max-width: 360px) {
  .login-box { padding: 26px 16px; }
  .brand-name { font-size: 1.3rem; }
}