body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 30%, #2a8f47 70%, #27ae60 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.login-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Animated background particles */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

.form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
  animation: slideUp 0.6s ease-out;
  text-align: center;
  margin: auto;
}

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

/* Wevend Logo */
.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo-text {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 30%, #2a8f47 70%, #27ae60 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
  letter-spacing: -1px;
}

.logo-text::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 30%, #2a8f47 70%, #27ae60 100%);
  border-radius: 2px;
}

.logo-subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-top: 8px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-top: 85px;
}

.loginInputs {
  padding: 15px 20px;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  width: 100%;
  box-sizing: border-box;
}

.loginInputs:focus {
  outline: none;
  border-color: #2a5298;
  box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.loginInputs[readonly] {
  background: rgba(240, 242, 247, 0.8);
  color: #666;
}

button {
  padding: 15px 20px;
  background: #2a5298;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(42, 82, 152, 0.3);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.secondary-btn {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
  margin-top: 10px !important;
}

.secondary-btn:hover {
  box-shadow: 0 10px 25px rgba(108, 117, 125, 0.3) !important;
}

.loginMessage {
  text-align: center;
  color: #e74c3c;
  font-size: 14px;
  font-weight: 500;
  margin: 15px 0;
  padding: 12px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  border-radius: 8px;
  animation: shake 0.5s ease-in-out;
}

.choice-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.choice-header {
  margin-bottom: 30px;
  text-align: center;
  color: #fff;
}

.choice-header p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

.choice-grid {
  width: 100%;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.choice-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: center;
  box-shadow: 0 25px 40px rgba(15, 23, 42, 0.35);
  text-decoration: none;
  color: #0f172a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.choice-card .choice-icon {
  font-size: 2.5rem;
}

.choice-card strong {
  font-size: 1.1rem;
}

.choice-card p {
  margin: 4px 0 0;
  color: rgba(15, 23, 42, 0.7);
  font-size: 0.9rem;
}

.choice-card.mobile {
  border: 1px solid rgba(42, 147, 70, 0.6);
}

.choice-card.desktop {
  border: 1px solid rgba(23, 67, 146, 0.6);
}

.choice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 35px 50px rgba(15, 23, 42, 0.45);
}

.choice-card.install {
  border: 1px solid rgba(8, 145, 178, 0.6);
  background: rgba(255, 255, 255, 0.92);
  align-items: flex-start;
}

.install-btn {
  margin-top: 12px;
  width: auto;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9 0%, #22c55e 100%);
  font-size: 0.95rem;
}

.install-btn:hover {
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.35);
}

.install-hint {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.7);
}

.ios-install {
  margin-top: 22px;
  max-width: 520px;
  background: rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 16px 18px;
  color: #fff;
  text-align: left;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
}

.ios-title {
  font-weight: 600;
  margin-bottom: 6px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.loginForm {
  margin-bottom: 0;
}

#createAccount {
  width: 100%;
  background: transparent;
  color: #2a5298;
  border: 2px solid #2a5298;
  margin-top: 20px;
  box-sizing: border-box;
}

#createAccount:hover {
  background: #2a5298;
  color: white;
  box-shadow: 0 10px 25px rgba(42, 82, 152, 0.2);
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Form transitions */
.loginForm {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive design */
@media (max-width: 480px) {
  .form-container {
    margin: 20px;
    padding: 30px 25px;
  }
  
  .logo-text {
    font-size: 2rem;
  }
}
