* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  height: 100%;
}

body {
  background: #121d24;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Top, Bottom, Middle space ensure karne ke liye */
  justify-content: space-between; 
  height: 100vh;
  height: 100dvh;
  padding: 10px 20px 14px 20px;
  overflow: hidden;
}

.lang-top {
  width: 100%;
  text-align: center;
  color: #92a4b0;
  font-size: 13px;
  margin-top: 4px;
  user-select: none;
}

/* FIX: Card Positioning aur Niche Margin */
.card {
  width: 100%;
  max-width: 360px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Logo ke thoda niche placement ensure karne ke liye auto margins */
  margin-top: auto; 
  margin-bottom: auto;
}

/* FIX: Logo Positioning - Top centered, 10% niche */
.insta-svg-logo {
  width: 60px !important;
  height: 60px !important;
  max-width: 60px !important;
  max-height: 60px !important;
  display: block;
  flex-shrink: 0;
  /* Screen ke top se 10% niche placement */
  margin-top: 10vh; 
  margin-left: auto;
  margin-right: auto;
}

form {
  width: 100%;
}

.input-box {
  position: relative;
  margin-bottom: 10px;
  width: 100%;
}

.input-box input {
  width: 100%;
  height: 48px;
  background: #1b2831;
  border: 1px solid #2d3e4a;
  border-radius: 12px;
  padding: 0 42px 0 14px;
  font-size: 13.5px;
  color: #ffffff;
  outline: none;
  text-overflow: ellipsis;
}

.input-box input::placeholder {
  color: #728491;
  font-size: 13px;
}

.input-box input:focus {
  border-color: #0064e0;
}

.eye-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #728491;
  display: flex;
  align-items: center;
}

.eye-btn .eye-closed {
  display: none;
}

.eye-btn.active .eye-open {
  display: none;
}

.eye-btn.active .eye-closed {
  display: block;
  color: #0064e0;
}

button[type="submit"] {
  width: 100%;
  height: 44px;
  background: #0064e0;
  border: none;
  border-radius: 22px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forgot-pass {
  color: #e4e6eb;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
  cursor: pointer;
  user-select: none;
}

.footer-area {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 2px;
}

.create-acc-btn {
  width: 100%;
  height: 42px;
  border: 1px solid #1f3f60;
  border-radius: 21px;
  color: #3897f0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
}

.meta-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  user-select: none;
}

.meta-icon {
  width: 16px;
  height: 16px;
  fill: #cbd5e1;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

button.loading .btn-text {
  display: none;
}

button.loading .spinner {
  display: block;
}
