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

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom right, #1e1f26, #3a3b47);
  color: white;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.welcome-screen {
  padding: env(safe-area-inset-top, 20px) 20px env(safe-area-inset-bottom, 20px);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.logo {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #b0b0b0;
}

/* Card-style container */
.card {
  background: #03030363;
  padding: 30px 20px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: rgba(197, 195, 195, 0.774);
}



.icon {
  width: 20px;
  height: 20px;
}

.signin-link {
  margin-top: 15px;
  font-size: 0.9rem;
  color: #aaa;
}

.signin-link a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
}

.auth-screen {
  max-width: 400px;
  margin: auto;
  padding: env(safe-area-inset-top, 20px) 20px env(safe-area-inset-bottom, 20px);
  color: white;
 
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-form label {
  font-weight: 600;
  margin-bottom: 5px;
  color: #bbb;
}

.auth-form input {
  padding: 12px 15px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 1rem;
}

.auth-form input:focus {
  box-shadow: 0 0 8px #6366f1;
  border: 2px solid #6366f1;
}



/* Create Account button */
.create-btn {
  background-color: #6365f160;
  color: white;
  padding: 15px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 15px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.create-btn:hover {
  background: #3c3ea59f;
  transform: translateY(-2px);
}

.signin-link {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #aaa;
  text-align: center;
}

.signin-link a {
  color: #6366f1;
  text-decoration: none;
  font-weight: 600;
}


.account-info {
  position: fixed;
  top: 40px; /* enough padding for iPhone X notch */
  right: 20px;
  background-color: rgba(0,0,0,0.6);
  color: white;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  z-index: 1000;
  max-width: 80vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



.download-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #6785a7, #455b77);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  overflow: hidden;
}

.download-btn::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: rgba(42, 50, 77, 0.404);
  transform: rotate(45deg);
  transition: all 0.5s ease;
}

.download-btn:hover::before {
  top: 0;
  left: 0;
}

.create-btn {
  text-decoration: none; /* removes underline */
}

.download-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.download-btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

/* Reset form slightly smaller than original (14%) */
.reset-form {
  margin-top: 13px; /* originally 15px */
  gap: 8.6px;       /* originally 10px */
}

.reset-form label {
  font-size: 0.731rem; /* originally 0.85rem */
  color: #999898;
}

.reset-form input {
  padding: 8.6px 10.3px; /* originally 10px 12px */
  font-size: 0.774rem;    /* originally 0.9rem */
  border-radius: 10.3px;  /* originally 12px */
  background-color: rgb(14, 13, 13);
  color: rgb(238, 238, 238);
}

.reset-form .small-btn {
  padding: 8.6px 12.9px; /* keeps 14% smaller */
  font-size: 0.774rem;    
  border-radius: 10px;  
  background: #1b0707;
  width: 100%;              /* half-width */
  height: 25px;            /* fixed height */
  text-align: center;      /* center the text */
  display: flex;           /* flex centering */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgb(160, 150, 150);
}

.reset-form .small-btn:hover {
  background: #2e0303;
   color: rgb(201, 197, 197);
}

.header p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.678);
}

.header h1 {
  background: linear-gradient(
    90deg,
    #4b6188,
    #89bfff,
    #89bfff,
    #5571a0,
    #89bfff
  );
  background-size: 300% 100%;  /* make the gradient larger than text */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;

  animation: moveGradient 5s linear infinite;
}

@keyframes moveGradient {
  0% {
    background-position: 0% 0%;
  }
  100% {
    background-position: 100% 0%;
  }
}


.tagline {
  font-size: 18px;
  color: #ffe0e0; /* soft cyan/white */
  text-shadow: 
    0 0 4px rgba(8, 10, 10, 0.6),
    0 0 8px rgba(14, 17, 17, 0.4),
    0 0 12px rgba(18, 20, 20, 0.2);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    text-shadow: 
      0 0 4px rgba(19, 26, 26, 0.6),
      0 0 8px rgba(6, 7, 7, 0.4),
      0 0 12px rgba(12, 14, 14, 0.2);
  }
  50% {
    text-shadow: 
      0 0 6px rgba(22, 27, 27, 0.8),
      0 0 12px rgba(18, 20, 20, 0.6)
      0 0 20px rgba(11, 12, 12, 0.4);
  }
}
