/* Apple Maps Design System */
:root {
  --apple-blue: #007AFF;
  --apple-blue-dark: #0056b3;
  --apple-blue-light: rgba(0, 122, 255, 0.1);
  --apple-green: #34C759;
  --apple-red: #FF3B30;
  --apple-orange: #FF9500;
  --apple-background: #000000;
  --apple-surface: rgba(28, 28, 30, 0.8);
  --apple-text: #FFFFFF;
  --apple-text-secondary: #8E8E93;
  --apple-separator: #38383A;
  --apple-blur: rgba(28, 28, 30, 0.8);
  --apple-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  --apple-shadow-light: 0 4px 20px rgba(0, 0, 0, 0.2);
  --apple-radius-small: 8px;
  --apple-radius-medium: 12px;
  --apple-radius-large: 16px;
  --apple-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
}

/* full‐page flex centering */
html, body { 
  height: 100%; 
  margin: 0; 
  width: 100vw;
  min-height: 100vh;
  display: flex; 
  align-items: center;
  justify-content: center;
  background: var(--apple-background);
  font-family: var(--apple-font);
  overflow: auto;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 122, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(52, 199, 89, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 149, 0, 0.05) 0%, transparent 50%);
  z-index: -1;
}

.login-container {
  margin: 0;
  width: 400px;
  max-width: 90vw;
  text-align: center;
  background: var(--apple-surface);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-radius: var(--apple-radius-large);
  padding: 40px;
  box-shadow: var(--apple-shadow);
  color: var(--apple-text);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 24px auto;
    background: var(--apple-text-secondary);
    object-fit: cover;
    display: block;
    box-shadow: var(--apple-shadow-light);
}

h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--apple-text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

p { 
  color: var(--apple-text-secondary); 
  margin-bottom: 32px; 
  font-size: 17px;
  line-height: 1.4;
}

/* OAuth buttons */
.oauth-buttons {
  display: flex; 
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: flex; 
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: var(--apple-radius-medium);
  text-decoration: none;
  font-weight: 600;
  font-size: 17px;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  min-height: 50px;
  box-sizing: border-box;
  font-family: var(--apple-font);
  letter-spacing: -0.2px;
}

.btn img { 
  height: 20px; 
  margin-right: 12px; 
}

/* Removed Apple button styles */

.btn-google {
  background: #fff; 
  color: #1d1d1f;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-google:hover {
  background: #f5f5f7;
  transform: translateY(-1px);
  box-shadow: var(--apple-shadow-light);
}

/* Clean Google button - no nested button issues */

/* "Or" divider */
.divider {
  display: flex; 
  align-items: center;
  margin: 32px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--apple-separator);
}

.divider span {
  margin: 0 16px;
  color: var(--apple-text-secondary);
  font-size: 15px;
  font-weight: 500;
}

/* Email/password form */
#email-login-form,
#email-register-form {
  display: flex; 
  flex-direction: column;
  gap: 12px;
}

#email-login-form input,
#email-register-form input {
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--apple-radius-medium);
  font-size: 17px;
  transition: all 0.2s ease;
  min-height: 50px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.05);
  color: var(--apple-text);
  font-family: var(--apple-font);
  letter-spacing: -0.2px;
}

#email-login-form input::placeholder,
#email-register-form input::placeholder {
  color: var(--apple-text-secondary);
}

#email-login-form input:focus,
#email-register-form input:focus {
  outline: none;
  border-color: var(--apple-blue);
  background: rgba(0, 122, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

.btn-primary {
  background: var(--apple-blue);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 600;
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--apple-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--apple-shadow-light);
}

/* Register link */
.signup-link {
  margin-top: 24px;
  font-size: 16px;
  color: var(--apple-text-secondary);
}

.signup-link a {
  color: var(--apple-blue);
  text-decoration: none;
  font-weight: 500;
}

.signup-link a:hover {
  opacity: 0.8;
}

/* Mobile optimizations */
@media (max-width: 600px) {
  .login-container {
    width: 95%;
    padding: 1.5rem;
    margin: 20px auto;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .avatar {
    width: 80px;
    height: 80px;
  }
  
  .btn {
    padding: 1rem;
    font-size: 1.1rem;
    min-height: 55px;
  }
  
  #email-login-form input {
    padding: 1rem;
    font-size: 1.1rem;
    min-height: 55px;
  }
}

/* Touch-friendly hover states for mobile */
@media (hover: none) and (pointer: coarse) {
  .btn:hover,
  .btn-google:hover,
  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
} 