* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

body.admin-login {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #0c0c1e 0%, #1a0033 50%, #0f0f2a 100%);
  position: relative;
  overflow: hidden;
}

body.admin-login::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
  z-index: -1;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(1deg); }
}

.container {
  background: rgba(20, 20, 40, 0.8);
  border-radius: 24px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  color: #e0e0e0;
  padding: 50px;
  max-width: 480px;
  width: 100%;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  position: relative;
}

body.admin-login .container {
  background: linear-gradient(145deg, rgba(25, 25, 55, 0.9), rgba(40, 25, 65, 0.9));
  box-shadow: 
    0 25px 60px rgba(0,0,0,0.6),
    0 0 0 1px rgba(99, 102, 241, 0.3),
    inset 0 1px 0 rgba(255,255,255,0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
}

h1 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 40px;
  font-size: 2.2em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.admin-login h1 {
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.4em;
  margin-bottom: 45px;
  position: relative;
}

body.admin-login h1 i {
  margin-right: 12px;
  vertical-align: middle;
  width: 36px;
  height: 36px;
}

.form-group {
  margin-bottom: 28px;
  position: relative;
}

label {
  display: block;
  margin-bottom: 10px;
  color: #d1d5db;
  font-weight: 500;
  font-size: 0.95em;
  transition: all 0.3s;
}

input[type="text"], input[type="password"], textarea {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid rgba(55, 65, 81, 0.5);
  border-radius: 16px;
  font-size: 16px;
  background: rgba(30, 30, 55, 0.8);
  color: #f8fafc;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);
  font-family: 'Inter', sans-serif;
}

body.admin-login input[type="text"], 
body.admin-login input[type="password"], 
body.admin-login textarea {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(35, 35, 65, 0.9);
  backdrop-filter: blur(10px);
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 
    0 0 0 4px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-1px);
  background: rgba(45, 45, 75, 1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.btn {
  width: 100%;
  padding: 18px 24px;
  border: none;
  border-radius: 16px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
  color: #ffffff;
}

.form-spacing {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.main-page h1 i {
  margin-right: 12px;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(107, 114, 128, 0.4);
}

.btn-primary:disabled {
  background: #555;
  color: #999;
  cursor: not-allowed;
  transform: none;
}

.login-form {
  display: none;
}

.login-form.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.whitelist-list {
  margin-top: 25px;
}

.whitelist-item {
  background: rgba(30, 30, 55, 0.8);
  color: #e0e0e0;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 15px;
  border-left: 4px solid #6366f1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  transition: all 0.3s;
}

.whitelist-item:hover {
  transform: translateX(5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.hidden {
  display: none;
}

input::placeholder {
  color: #94a3b8;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-fill: rgba(35, 35, 65, 0.9);
  transition: background-color 5000s;
  border-color: rgba(99, 102, 241, 0.4);
  color: #f8fafc;
}

@media (max-width: 600px) {
  .container {
    padding: 35px 25px;
    margin: 20px;
  }
  
  body.admin-login h1 {
    font-size: 2em;
  }
  
  h1 {
    font-size: 2em;
  }
}

.feather {
  stroke: currentColor;
}
