:root {
  --background: #0b172a;
  --surface: rgba(13, 28, 54, 0.85);
  --text: #f5f7fa;
  --muted: #a1afc9;
  --primary: #3d8bfd;
  --primary-dark: #1f6feb;
  --success: #2ecc71;
  --danger: #ff6b6b;
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  background: radial-gradient(circle at 20% 20%, rgba(61, 139, 253, 0.2), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(46, 213, 115, 0.2), transparent 55%),
    var(--background);
  color: var(--text);
  margin: 0;
  min-height: 100vh;
}

.container {
  width: min(960px, 90vw);
  margin: 0 auto;
  padding: 2rem 0;
}

.site-header {
  background: rgba(5, 12, 24, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header h1 {
  margin: 0;
}

.logout-form {
  float: right;
}

.logout-form button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem 1.5rem;
}

.card {
  background: var(--surface);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.auth-card {
  max-width: 420px;
  margin: 4rem auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input[type='text'],
input[type='password'],
input[type='url'],
input[type='file'] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: var(--text);
  padding: 0.75rem 1rem;
  width: 100%;
}

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

.password-input-wrapper input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--text);
}

.password-toggle .eye-icon {
  user-select: none;
}

.form-links {
  text-align: center;
  margin-top: 0.5rem;
}

.form-links .link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
}

.form-links .link:hover {
  text-decoration: underline;
}

.button.secondary {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

button {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
}

button.primary {
  background: var(--primary);
  color: white;
}

button.danger {
  background: var(--danger);
  color: white;
}

button.danger:disabled {
  background: rgba(255, 107, 107, 0.4);
  cursor: not-allowed;
}

button.primary:hover {
  background: var(--primary-dark);
}

button.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
}

.alert {
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
}

.alert-success {
  background: rgba(46, 213, 115, 0.12);
  color: var(--success);
}

.alert-info {
  background: rgba(61, 139, 253, 0.12);
}

.alert-error {
  background: rgba(255, 107, 107, 0.12);
  color: var(--danger);
}

.drive-files {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.drive-file {
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  display: flex;
  justify-content: space-between;
  padding: 1rem;
}

.drive-file strong {
  display: block;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.hidden {
  display: none;
}

@media (max-width: 600px) {
  .drive-file {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
  .logout-form {
    float: none;
    text-align: right;
    margin-top: 1rem;
  }
}
