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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #e0e0e0;
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 800px;
  margin: auto;
  background-color: #2c2c2c;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.auth-form {
  padding: 40px;
  text-align: center;
}

.auth-form h2 {
  color: #f0f0f0;
  margin-bottom: 20px;
  font-size: 24px;
}

.auth-form input {
  width: 100%;
  padding: 12px 16px;
  margin: 10px 0;
  border: 1px solid #555;
  border-radius: 8px;
  font-size: 16px;
  background-color: #3a3a3a;
  color: #e0e0e0;
  transition: border 0.3s ease, background-color 0.3s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: #007bff;
  background-color: #444;
}

.auth-form button {
  width: 100%;
  padding: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.auth-form button:hover {
  background-color: #0056b3;
}

.auth-form p {
  margin-top: 20px;
  font-size: 14px;
  color: #aaa;
}

.auth-form a {
  color: #007bff;
  text-decoration: none;
}

.auth-form a:hover {
  text-decoration: underline;
}

#main-app {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 30px;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #444;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.app-header h1 {
  color: #f0f0f0;
  font-size: 28px;
  font-weight: 600;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info span {
  font-weight: 500;
  color: #e0e0e0;
}

.user-info button {
  padding: 8px 16px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.user-info button:hover {
  background-color: #c82333;
}

.content-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.add-password-section {
  background-color: #3a3a3a;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.add-password-section form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.password-input-group {
  display: flex;
  gap: 8px;
}

.password-input-group input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #555;
  border-radius: 8px 0 0 8px;
  background-color: #444;
  color: #e0e0e0;
}

.password-input-group button {
  padding: 12px 16px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.password-input-group button:hover {
  background-color: #218838;
}

.password-list-section {
  background-color: #3a3a3a;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.password-list-section h3 {
  color: #f0f0f0;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 600;
}

#password-list {
  list-style: none;
}

#password-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #444;
  background-color: #2c2c2c;
  border-radius: 8px;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

#password-list li:hover {
  background-color: #3a3a3a;
}

#password-list li strong {
  color: #6ea8fe;
  font-size: 16px;
}

#password-list li span {
  color: #aaa;
  font-size: 14px;
}

.delete-btn {
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.delete-btn:hover {
  background-color: #c82333;
}