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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
    sans-serif;
  background: linear-gradient(135deg, #2e5585 0%, #00244e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-container {
  background: rgba(0, 52, 104, 0.95);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 500px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
  width: 410px;
  height: auto;
  margin-bottom: 2.5rem;
}

h1 {
  color: #ffffff;
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
  color: #e8f4fd;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-weight: 400;
  padding: 0 3rem;
}

.form-group {
  text-align: left;
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  color: #e8f4fd;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.sign-in-button {
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  color: #003468;
  border: none;
  padding: 1.1rem 2.5rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  margin-top: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.025em;
}

.sign-in-button:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #002754;
  filter: brightness(1.05);
}

.sign-in-button:active {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  filter: brightness(0.95);
}

.sign-in-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.loading {
  display: none;
  color: #e8f4fd;
  font-size: 0.95rem;
  margin-top: 1rem;
  font-weight: 500;
}

.error {
  display: none;
  color: #ff6b6b;
  background: rgba(220, 53, 69, 0.15);
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  border: 1px solid rgba(220, 53, 69, 0.3);
  text-align: left;
}

.success {
  display: none;
  color: #51cf66;
  background: rgba(40, 167, 69, 0.15);
  padding: 1.2rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.success a {
  color: #51cf66;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(81, 207, 102, 0.3);
  transition: all 0.2s ease;
}

.success a:hover {
  color: #40c057;
  border-bottom-color: #40c057;
}

.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
  }

  .login-container {
    padding: 2rem;
    border-radius: 16px;
    max-width: none;
    width: 100%;
  }

  h1 {
    font-size: 1.3rem;
  }

  .logo {
    width: 220px;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .sign-in-button {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
}
