/* Login Page Styles */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 400px;
}

.login-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: slideUp 0.5s ease;
}

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

.login-header {
  background: #2a2a2a;
  padding: 30px 25px;
  text-align: center;
  color: #fff;
}

.logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 15px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.login-header h1 {
  font-size: 1.5rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.login-header p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.login-form {
  padding: 30px 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #333;
  font-size: 0.85rem;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s;
  background: #f8f9fa;
}

.password-input-wrapper input {
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: color 0.2s;
}

.toggle-password:hover {
  color: #2a2a2a;
}

.form-group input:focus {
  outline: none;
  border-color: #2a2a2a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 42, 42, 0.1);
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 10px 12px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  border-left: 3px solid #c33;
}

.btn-login {
  width: 100%;
  padding: 12px;
  background: #2a2a2a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-login:hover {
  background: #3a3a3a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(42, 42, 42, 0.4);
}

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

.btn-login:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-footer {
  padding: 16px 25px;
  background: #f8f9fa;
  text-align: center;
  color: #666;
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 480px) {
  .login-card {
    border-radius: 12px;
  }

  .logo {
    max-width: 160px;
  }

  .login-header {
    padding: 25px 20px;
  }

  .login-header h1 {
    font-size: 1.3rem;
  }

  .login-form {
    padding: 25px 20px;
  }
}
