:root {
  --bg: #080b1d;
  --surface: #1a203a;
  --surface-dark: #0c1024;
  --border: rgba(255, 255, 255, 0.1);
  --text-white: #ffffff;
  --text-body: #c8cedd;
  --text-muted: #9aa3b8;
  --pink: #ff4fb3;
  --teal: #60a3a6;
  --yellow: #f0fe72;
  --font: "Inter", system-ui, sans-serif;
}

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

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-white);
  font-family: var(--font);
}

.admin-page {
 
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.admin-info {
  width: min(520px, calc(100% - 40px));
  align-self: center;
  justify-self: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 52px 44px;
}
.admin-info-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.portal-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--teal);
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.admin-info h1 {
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 0;
}

.admin-info h1 span {
  color: var(--teal);
}

.lead {
  font-size: 16px;
  color: var(--text-white);
  margin-bottom: 32px;
}

.restricted-card {
  display: flex;
  gap: 16px;
  background: var(--surface-dark);
  border: 1px solid rgba(96, 163, 166, 0.35);
  border-radius: 14px;
  padding: 26px 24px;
  margin-bottom: 30px;
}

.restricted-card i {
  color: var(--yellow);
  font-size: 22px;
  margin-top: 4px;
}

.restricted-card h2 {
  font-size: 16px;
  margin-bottom: 12px;
}

.restricted-card p {
  color: var(--text-body);
  line-height: 1.6;
  font-size: 13px;
}

.admin-list {
  list-style: none;
  display: grid;
  gap: 16px;
}

.admin-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
}

.admin-list span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.admin-card {
  width: 100%;
  max-width: 526px;
  align-self: center;
  justify-self: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 40px;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 14px;
}

.card-title-row i {
  color: var(--teal);
  font-size: 36px;
}

.card-title-row h2 {
  font-size: 34px;
}

.card-subtitle {
  color: var(--text-body);
  font-size: 17px;
  margin-bottom: 32px;
}

.admin-form {
  display: grid;
  gap: 26px;
}

.form-group label {
  display: block;
  color: var(--text-body);
  font-weight: 700;
  margin-bottom: 12px;
}

.input-box {
  height: 44px;
  background: var(--surface-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
}
.input-box.error {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(96, 163, 166, 0.18);
}

.form-message {
  min-height: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal);
}

.input-box i {
  color: var(--text-muted);
  font-size: 20px;
}

.input-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text-white);
  font-size: 16px;
}

.toggle-password {
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-body);
  font-weight: 600;
}

.remember-row input {
  accent-color: var(--teal);
}

.form-message {
  min-height: 18px;
  font-size: 14px;
  font-weight: 600;
}

.admin-submit {
  height: 50px;
  border: none;
  border-radius: 12px;
  background: var(--teal);
  color: var(--text-white);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 18px 38px rgba(96, 163, 166, 0.24);
}

.back-link {
  display: block;
  margin-top: 34px;
  text-align: center;
  color: var(--text-body);
  text-decoration: none;
  font-weight: 700;
}
@media (max-width: 900px) {
  .admin-nav {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-info {
    display: none;
  }

  .admin-card {
    margin: 40px 20px;
    padding: 32px 24px;
  }
}