@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
--bg-image: url('https://api.stack.events/archive/grab-login-image.php?school=rocklin-high-school&query=championship');
--bg-blur: 8px;
  
  --color-surface: rgba(255, 255, 255, 0.25);
  --color-surface-hover: rgba(255, 255, 255, 0.35);
  --color-border: rgba(255, 255, 255, 0.18);
  --color-separator: rgba(255, 255, 255, 0.12);
  
  --color-primary: #007aff;
  --color-primary-hover: #0051d5;
  
  --color-text: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.85);
  --color-text-tertiary: rgba(255, 255, 255, 0.65);
  --color-placeholder: rgba(255, 255, 255, 0.45);
  
  --color-input-bg: rgba(255, 255, 255, 0.35);
  --color-input-bg-hover: rgba(255, 255, 255, 0.4);
  --color-input-bg-focus: rgba(255, 255, 255, 0.45);
  --color-input-border: rgba(255, 255, 255, 0.2);
  --color-input-border-hover: rgba(255, 255, 255, 0.3);
  --color-input-focus-ring: rgba(0, 122, 255, 0.35);
  --color-placeholder: rgba(255, 255, 255, 0.6);
  
  --color-error-bg: rgba(255, 69, 58, 0.15);
  --color-error-border: rgba(255, 69, 58, 0.3);
  --color-error-text: #ff6b6b;
  
  --blur-light: 30px;
  --blur-heavy: 80px;
  
  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 100px;
  
  --spacing-xs: 6px;
  --spacing-sm: 10px;
  --spacing-md: 14px;
  --spacing-lg: 20px;
  --spacing-xl: 28px;
  --spacing-2xl: 44px;
  
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.22);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.28);
}

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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 110%;
  height: 110%;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(var(--bg-blur));
  transform: translate(-50%, -50%);
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  z-index: -1;
}

.login-container {
  position: relative;
  background: var(--color-surface);
  backdrop-filter: saturate(180%) blur(var(--blur-heavy));
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur-heavy));
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 400px;
  text-align: center;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  animation: slideIn 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.login-container:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.22);
}

.logo {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--spacing-xl) auto;
  transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.logo:hover {
  transform: translateY(-8px) rotate(-3deg) scale(1.08);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
}

input[type="text"], 
input[type="password"] {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-md);
  margin: var(--spacing-xs) 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 17px;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  transition: all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

input[type="text"]::placeholder, 
input[type="password"]::placeholder {
  color: var(--color-placeholder);
  font-weight: 400;
}

input[type="text"]:hover,
input[type="password"]:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.28);
}

input[type="text"]:focus, 
input[type="password"]:focus {
  outline: none;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 4px var(--color-input-focus-ring), var(--shadow-xs);
  transform: translateY(-1px);
}

input[type="text"]:invalid,
input[type="password"]:invalid {
  box-shadow: none;
}

input[type="text"]:invalid:not(:placeholder-shown),
input[type="password"]:invalid:not(:placeholder-shown) {
  border-color: var(--color-error-border);
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: var(--spacing-lg) 0;
  font-size: 15px;
  color: var(--color-text-secondary);
  font-weight: 400;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.checkbox-container:hover {
  color: var(--color-text);
}

.checkbox-container input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 51px;
  height: 31px;
  margin-right: var(--spacing-md);
  border-radius: 16px;
  background: rgba(120, 120, 128, 0.32);
  backdrop-filter: blur(10px);
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  flex-shrink: 0;
  border: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), 
              inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.checkbox-container input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 
              0 1px 1px rgba(0, 0, 0, 0.16);
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.checkbox-container input[type="checkbox"]:hover {
  background: rgba(120, 120, 128, 0.4);
}

.checkbox-container input[type="checkbox"]:checked {
  background: var(--color-primary);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02), 
              inset 0 1px 3px rgba(0, 0, 0, 0.08),
              0 0 0 0 var(--color-input-focus-ring);
}

.checkbox-container input[type="checkbox"]:checked::before {
  left: 22px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2), 
              0 1px 1px rgba(0, 0, 0, 0.18);
}

.checkbox-container input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), 
              inset 0 1px 3px rgba(0, 0, 0, 0.15),
              0 0 0 4px var(--color-input-focus-ring);
}

.checkbox-container input[type="checkbox"]:active::before {
  width: 32px;
}

.checkbox-container input[type="checkbox"]:checked:active::before {
  left: 17px;
}

.login-button {
  width: 100%;
  padding: 13px var(--spacing-lg);
  font-size: 17px;
  font-weight: 590;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-top: var(--spacing-lg);
  background: var(--color-primary);
  color: white;
  letter-spacing: -0.02em;
  transition: all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: var(--shadow-sm);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.login-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  opacity: 1;
  transition: opacity 0.25s ease;
}

.login-button:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.login-button:hover::before {
  opacity: 0.8;
}

.login-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: var(--shadow-xs);
  transition: all 0.1s ease;
}

.links-container {
  margin-top: var(--spacing-xl);
  font-size: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.links-container a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.links-container a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.links-container a:hover {
  color: var(--color-text);
  transform: translateY(-1px);
}

.links-container a:hover::after {
  opacity: 0.6;
  transform: scaleX(1);
}

.links-container a:active {
  transform: translateY(0);
}

.error-message {
  background: var(--color-error-bg);
  backdrop-filter: blur(20px);
  color: var(--color-error-text);
  padding: var(--spacing-md);
  margin: var(--spacing-md) 0;
  border: 1px solid var(--color-error-border);
  border-radius: var(--radius-md);
  font-size: 15px;
  text-align: left;
  font-weight: 400;
  animation: errorSlide 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: var(--shadow-xs);
}

@keyframes errorSlide {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.footer {
  margin-top: var(--spacing-xl);
  font-size: 13px;
  color: var(--color-text-tertiary);
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.footer a {
  color: var(--color-text-tertiary);
  text-decoration: none;
  font-weight: 400;
  transition: all 0.2s ease;
}

.footer a:hover {
  color: var(--color-text-secondary);
}