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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.auth-box, .shortener-box, .urls-list {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

h1 {
  color: white;
  text-align: center;
  margin-bottom: 10px;
  font-size: 2.5em;
}

.subtitle {
  color: rgba(255,255,255,0.9);
  text-align: center;
  margin-bottom: 30px;
}

h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 1.5em;
}

input[type="email"],
input[type="password"],
input[type="url"],
input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input:focus {
  outline: none;
  border-color: #667eea;
}

button {
  width: 100%;
  padding: 12px 20px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 10px;
}

button:hover {
  background: #5568d3;
}

button.secondary {
  background: #6c757d;
}

button.secondary:hover {
  background: #5a6268;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

.user-info button {
  width: auto;
  padding: 8px 16px;
  margin: 0;
}

.result-url {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.result-url input {
  flex: 1;
  margin: 0;
  background: #f8f9fa;
  font-weight: 600;
  color: #667eea;
}

.result-url button {
  width: auto;
  margin: 0;
}

.success {
  color: #28a745;
  font-weight: 600;
  margin-bottom: 10px;
}

#auth-message {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
  color: #dc3545;
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: #f8f9fa;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

th {
  font-weight: 600;
  color: #495057;
}

.url-link {
  color: #667eea;
  text-decoration: none;
  word-break: break-all;
}

.url-link:hover {
  text-decoration: underline;
}

.delete-btn {
  width: auto;
  padding: 6px 12px;
  margin: 0;
  font-size: 14px;
  background: #dc3545;
}

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

#loading {
  text-align: center;
  color: #6c757d;
  padding: 20px;
}