:root {
  --gold: #d4af37;
  --gold-dark: #b8860b;
  --black: #000000;
  --dark-bg: #121212;
  --card-bg: #1e1e1e;
  --text: #ffffff;
  --text-secondary: #a0a0a0;
  --border: #333333;
  --error: #ff6b6b;
  --success: #4ade80;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
  background: var(--dark-bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 460px;
  background: var(--card-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header {
  padding: 32px 24px 24px;
  text-align: center;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(to right, var(--gold), #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.form-container {
  padding: 0 24px 24px;
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

input {
  width: 100%;
  padding: 12px 14px;
  background: #2a2a2a;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
  transition: border-color 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--gold);
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 13px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
}

.remember input {
  width: auto;
  margin: 0;
}

.forgot {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.forgot:hover {
  text-decoration: underline;
}

.btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
}

.btn-primary:hover:not(:disabled) {
  background: var(--gold-dark);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.divider span {
  padding: 0 12px;
}

.google-btn-container {
  display: flex;
  justify-content: center;
}

.guest-section {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-secondary);
}

.guest-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
}

.guest-link:hover {
  text-decoration: underline;
}

.switch-form {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.switch-link {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  margin-left: 4px;
}

.switch-link:hover {
  text-decoration: underline;
}

.message {
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  display: none;
}

.message.error {
  background: rgba(255, 107, 107, 0.15);
  color: var(--error);
  display: block;
}

.message.success {
  background: rgba(74, 222, 128, 0.15);
  color: var(--success);
  display: block;
}

.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid var(--black);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
  .auth-container {
    border-radius: 12px;
  }
  .header {
    padding: 24px 20px 20px;
  }
}