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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: #333;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  max-width: 500px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
    background-image: url('logo.png');
    background-repeat: no-repeat;
    background-position: right 20px top 20px;
    background-size: 72px 72px;
  backdrop-filter: blur(20px);
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  text-align: center;
  color: #2d3748;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.5)); }
  to { filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.8)); }
}

.form-group {
  margin-bottom: 25px;
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #4a5568;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

input[type="text"], input[type="password"] {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  font-size: 16px;
  font-weight: 500;
  color: #2d3748;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

input[type="text"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
}

input::placeholder {
  color: #a0aec0;
  font-weight: 400;
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 18px 24px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.6);
}

.submit-btn:active {
  transform: translateY(-2px) scale(1.01);
}

.hidden {
  display: none;
}

#result {
  margin-top: 30px;
  background: linear-gradient(135deg, #f7fafc, #edf2f7);
  border-radius: 16px;
  padding: 25px;
  border: 1px solid rgba(102, 126, 234, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  animation: slideInDown 0.6s ease-out;
  width: 100%;
  box-sizing: border-box;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#result h2 {
  color: #2d3748;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}

.status-message {
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  animation: fadeIn 0.5s ease-out;
}

.status-message.success {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  border: 1px solid rgba(72, 187, 120, 0.3);
  box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.status-message.error {
  background: linear-gradient(135deg, #f56565, #e53e3e);
  color: white;
  border: 1px solid rgba(245, 101, 101, 0.3);
  box-shadow: 0 4px 15px rgba(245, 101, 101, 0.3);
}

.status-message.info {
  background: linear-gradient(135deg, #4299e1, #3182ce);
  color: white;
  border: 1px solid rgba(66, 153, 225, 0.3);
  box-shadow: 0 4px 15px rgba(66, 153, 225, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#result pre {
  background: #2d3748;
  color: #e2e8f0;
  padding: 20px;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 300px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: pre-wrap;
  word-wrap: break-word;
  min-width: 100%;
  box-sizing: border-box;
}

.actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.actions button,
.actions .action-link {
  background: linear-gradient(135deg, #48bb78, #38a169);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 140px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

.actions button::before,
.actions .action-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.actions button:hover::before,
.actions .action-link:hover::before {
  left: 100%;
}

.actions button:hover,
.actions .action-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(72, 187, 120, 0.4);
}

.actions button#btnPs1 {
  background: linear-gradient(135deg, #9f7aea, #805ad5);
}

.actions button#btnPs1:hover {
  box-shadow: 0 10px 25px rgba(159, 122, 234, 0.4);
}

@media (max-width: 768px) {
  .container {
    padding: 30px 20px;
    margin: 10px;
  }
  
  h1 {
    font-size: 28px;
  }
  
  input[type="text"], input[type="password"] {
    padding: 14px 18px;
    font-size: 16px;
  }
  
  .submit-btn {
    padding: 16px 20px;
    font-size: 16px;
  }
  
  .actions button {
    min-width: 120px;
    padding: 10px 16px;
  }
}

.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { left: -100%; }
  100% { left: 100%; }
}

.system-tips {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 15px;
  padding: 25px;
  margin: 20px 0;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.system-tips h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 20px;
  text-align: center;
  -webkit-text-fill-color: white;
  background: none;
  filter: none;
}

.tip-item {
  margin-bottom: 15px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.tip-item:last-child {
  margin-bottom: 0;
}

.tip-item strong {
  color: #ffd700;
  font-weight: 600;
}

.tip-item.note {
  background: rgba(255, 215, 0, 0.1);
  border-left-color: #ffd700;
}

.tip-item.note strong {
  color: #ffd700;
}

.guide-link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

.guide-link:hover {
  color: #ffd700;
}

