@import url(https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700);

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: 300;
}

body {
  font-family: 'Inter', 'Source Sans Pro', sans-serif !important;
  color: white;
  font-weight: 300;
}

body ::-webkit-input-placeholder {
  font-family: 'Inter', 'Source Sans Pro', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

body :-moz-placeholder {
  font-family: 'Inter', 'Source Sans Pro', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  font-weight: 300;
}

body ::-moz-placeholder {
  font-family: 'Inter', 'Source Sans Pro', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
  font-weight: 300;
}

body :-ms-input-placeholder {
  font-family: 'Inter', 'Source Sans Pro', sans-serif;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.wrapper {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.wrapper.form-success .container h1 {
  transform: translateY(85px);
}

/* Hide secondary actions during login processing */
.wrapper.form-success .secondary-actions {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 20px 40px;
  min-height: 100vh;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.container h1 {
  font-size: 36px;
  transition: all 0.8s ease;
  font-weight: 300;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

form {
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

form input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 280px;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 auto 12px auto;
  display: block;
  text-align: center;
  font-size: 16px;
  color: white;
  transition: all 0.3s ease;
  font-weight: 400;
}

form input:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
}

form input:focus {
  background-color: rgba(255, 255, 255, 0.2);
  width: 320px;
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

form button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 0;
  padding: 14px 18px;
  color: #fff;
  border-radius: 12px;
  width: 280px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

form a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  margin-top: 8px;
}

form a:hover {
  color: #fff;
}

/* Secondary actions area */
.secondary-actions {
  position: relative;
  z-index: 2;
  transition: opacity 0.5s ease;
}

.action-pill {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 25px !important;
  padding: 10px 22px !important;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  transition: all 0.3s ease !important;
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.action-pill:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Expandable section inputs */
.expand-input {
  padding: 12px 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font-size: 16px !important;
  outline: none !important;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease !important;
}

.expand-input:focus {
  border-color: rgba(255, 255, 255, 0.6) !important;
  background: rgba(255, 255, 255, 0.18) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1) !important;
}

.expand-btn {
  padding: 12px 22px !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  white-space: nowrap;
}

.expand-btn:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* Bubbles Animation */
.bg-bubbles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.bg-bubbles li {
  position: absolute;
  list-style: none;
  display: block;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.06);
  bottom: -160px;
  animation: square 25s infinite;
  transition-timing-function: linear;
  border-radius: 4px;
}

.bg-bubbles li:nth-child(1) {
  left: 10%;
}

.bg-bubbles li:nth-child(2) {
  left: 20%;
  width: 80px;
  height: 80px;
  animation-delay: 2s;
  animation-duration: 17s;
}

.bg-bubbles li:nth-child(3) {
  left: 25%;
  animation-delay: 4s;
}

.bg-bubbles li:nth-child(4) {
  left: 40%;
  width: 60px;
  height: 60px;
  animation-duration: 22s;
  background-color: rgba(255, 255, 255, 0.08);
}

.bg-bubbles li:nth-child(5) {
  left: 70%;
}

.bg-bubbles li:nth-child(6) {
  left: 80%;
  width: 120px;
  height: 120px;
  animation-delay: 3s;
  background-color: rgba(255, 255, 255, 0.05);
}

.bg-bubbles li:nth-child(7) {
  left: 32%;
  width: 160px;
  height: 160px;
  animation-delay: 7s;
}

.bg-bubbles li:nth-child(8) {
  left: 55%;
  width: 20px;
  height: 20px;
  animation-delay: 15s;
  animation-duration: 40s;
}

.bg-bubbles li:nth-child(9) {
  left: 25%;
  width: 10px;
  height: 10px;
  animation-delay: 2s;
  animation-duration: 40s;
  background-color: rgba(255, 255, 255, 0.1);
}

.bg-bubbles li:nth-child(10) {
  left: 90%;
  width: 160px;
  height: 160px;
  animation-delay: 11s;
}

@keyframes square {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(-800px) rotate(600deg);
    opacity: 0;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Mobile responsive */
@media (max-width: 480px) {
  .container h1 {
    font-size: 24px;
  }

  form input,
  form button {
    width: 240px;
  }

  form input:focus {
    width: 260px;
  }
}