* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: Arial, sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px;
  background: linear-gradient(0deg, #202344 0%, #202344 100%), #0D111E;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  color: white;
  position: relative;
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  body {
    padding: 20px 15px;
  }
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -740px);
  width: 1248px;
  height: 800px;
  border-radius: 1248px;
  opacity: 0.2;
  background: linear-gradient(90deg, #FFC32B 17.4%, #FB43DA 41.57%, #D684FF 49.25%, #17E2EA 68.58%);
  filter: blur(90px);
  z-index: 0;
  margin-top: 160px;
}

@media (max-width: 768px) {
  .gradient-overlay {
    width: 100vw;
    max-width: 600px;
    height: 400px;
    border-radius: 600px;
    transform: translate(-50%, -300px);
    margin-top: 80px;
  }
}

.container {
  padding: 40px 40px 20px 40px;
  width: 100%;
  max-width: 450px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding: 20px 15px 15px 15px;
    max-width: calc(100vw - 30px);
  }
}

.logo {
  display: block;
  margin: 0 auto 10px;
  max-width: 200px;
  height: auto;
  filter: brightness(0) invert(1);
}

.sublogo {
  display: block;
  margin: 0 auto 45px;
  max-width: 120px;
  height: auto;
}

input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 16px;
  outline: none;
}

input:disabled {
  opacity: 1;
  background-color: white;
  color: black;
  border: 1px solid #ccc;
  cursor: default;
}

button {
  width: 100%;
  padding: 14px;
  background: #17e2ea;
  color: black;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(23, 226, 234, 0.3);
}

button:hover {
  background: #17e2ea;
}

.error {
  color: red;
  margin-bottom: 15px;
}

.success {
  color: green;
  margin-bottom: 20px;
}

.loading-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  z-index: 1000;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #17E2EA;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Small loader for initial login attempt */
.small-loader {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

.small-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #17E2EA;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.small-loader-text {
  color: white;
  font-size: 12px;
  white-space: nowrap;
}

.instruction-text {
  text-align: center;
  color: #555;
  margin-bottom: 25px;
  font-size: 16px;
  line-height: 1.4;
}

.footer {
  text-align: center;
  margin-top: 30px;
  color: white;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.footer .varsity-link {
  font-weight: bold;
  color: #17E2EA;
  text-decoration: none;
}

.footer .varsity-link:hover {
  color: #17e2ea;
}

.footer .login-link {
  color: #17E2EA;
  text-decoration: none;
}

.footer .login-link:hover {
  color: #17e2ea;
  text-decoration: underline;
}

/* Enhanced app footer styling */
.app-footer {
  margin-top: 45px;
  text-align: center;
}

.app-footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.app-footer-title {
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin: 0;
}

.app-downloads {
  display: flex;
  flex-direction: row;
  gap: 20px;
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .app-downloads {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }
  
  .download-link {
    white-space: normal;
    text-align: center;
    width: 220px;
    flex: none;
  }
}

.download-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  color: white;
  text-decoration: none;
  border: 1px solid white;
  border-radius: 50px;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: none;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  min-width: 220px;
}

.platform-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.download-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: underline;
  transform: translateY(-1px);
  box-shadow: none;
}

.download-link:active {
  transform: translateY(0);
}

/* Mac and Windows download buttons - now transparent with white borders */
.download-link:first-child {
  background: transparent;
  box-shadow: none;
}

.download-link:first-child:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: underline;
  box-shadow: none;
}

.download-link:last-child {
  background: transparent;
  box-shadow: none;
}

.download-link:last-child:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: underline;
  box-shadow: none;
}



.domain-message {
  margin-top: 10px;
  text-align: center;
  color: #666;
}

 