/* Base styles */
body {
  background: #fff;
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
}

/* Login container */
.login {
  width: 75%;
  max-width: 1000px;
  margin: 64px auto;
  font-size: 16px;
}

.login-header {
  background: #28d;
  padding: 20px;
  font-size: 1.4em;
  font-weight: normal;
  text-align: center;
  color: #fff;
  margin: 0;
}

.login-container {
  background: #ebebeb;
  padding: 12px;
}

/* Form elements */
.login p {
  padding: 12px;
  margin: 0;
}

.login input {
  box-sizing: border-box;
  width: 100%;
  padding: 16px;
  border: 1px solid #bbb;
  font-family: inherit;
  outline: 0;
}

input[type="text"] {
  letter-spacing: 0.6em;
  padding-left: 1em;
  padding-right: 1em;
  font-size: 1.5em;
  width: 50%;
  display: inline;
}

input[type="submit"] {
  background: #28d;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.5em;
  width: 60%;
}

p:has(input[type="submit"]) {
  margin-top: 24px;
}

input[type="submit"]:hover {
  background: #17c;
}

input[type="submit"]:focus {
  border-color: #05a;
}

/* Form layout */
form {
  text-align: center;
}

form label {
  font-size: 1.5em;
  margin-right: 1.5em;
}

/* Info text */
.info {
  text-align: left;
  font-size: 1em;
}

/* External link icon */
.external-link {
  color: #0000EE;
}

.external-link::after {
  content: "";
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.3em;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230000EE" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"></path><polyline points="15 3 21 3 21 9"></polyline><line x1="10" y1="14" x2="21" y2="3"></line></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

/* Error text */
.error {
  display: none;
  font-weight: bold;
  color: red;
}

/* Footer */
.logo {
  margin-top: 50px;
  text-align: center;
}

.copyright {
  text-align: center;
}

/* Download page specific styles */
.download-section {
  background: #ebebeb;
  padding: 24px;
}

.description-text {
  background: #fff;
  padding: 16px 20px;
  margin-bottom: 16px;
  border-left: 4px solid #28d;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  font-size: 1em;
  line-height: 1.8;
  color: #2c3e50;
}

.download-buttons-section {
  background: #fff;
  padding: 24px;
  margin-top: 24px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.download-buttons-header {
  font-size: 1.3em;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 3px solid #28d;
}

.download-button {
  background: linear-gradient(to bottom, #ffffff, #f5f5f5);
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  padding: 20px 50px 20px 32px;
  margin: 12px 0;
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1.4;
  width: 100%;
  min-height: 70px;
  cursor: pointer;
  text-align: center;
  color: #2c3e50;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.download-button::before {
  content: "⬇";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3em;
  color: #28d;
  opacity: 0.8;
}

.download-button:hover {
  background: linear-gradient(to bottom, #28d, #17c);
  border-color: #17c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(34, 136, 221, 0.3);
  transform: translateY(-2px);
}

.download-button:hover::before {
  color: #ffffff;
  animation: bounce 0.6s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(-40%); }
}

.download-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.update-info {
  background: #fff;
  padding: 20px;
  margin-top: 0;
  margin-bottom: 24px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.update-info h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #2c3e50;
  border-bottom: 2px solid #28d;
  padding-bottom: 8px;
}

.update-info p {
  margin: 12px 0;
  padding: 8px 0;
  line-height: 1.6;
  border-bottom: 1px solid #efefef;
}

.update-info p:last-child {
  border-bottom: none;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
  .login {
    width: 85%;
  }
}

@media screen and (max-width: 800px) {
  .login {
    width: 90%;
  }
}

@media screen and (max-width: 768px) {
  .download-button {
    font-size: 0.95em;
    padding: 16px 40px 16px 28px;
    min-height: 65px;
  }

  .download-button::before {
    left: 12px;
    font-size: 1.2em;
  }
}

@media screen and (max-width: 480px) {
  .login {
    margin: 16px auto;
    font-size: 16px;
  }

  form label {
    display: block;
    margin: 0 auto;
  }

  input[type="text"] {
    letter-spacing: 0.6em;
    width: 80%;
    margin: 0 auto;
    display: block;
  }

  input[type="submit"] {
    width: 80%;
    margin: 0 auto;
    display: block;
  }

  .download-button {
    font-size: 0.85em;
    padding: 14px 12px 14px 36px;
    min-height: 60px;
    line-height: 1.3;
  }

  .download-button::before {
    left: 10px;
    font-size: 1.1em;
  }

  .description-text {
    font-size: 0.9em;
    padding: 14px 16px;
  }

  .update-info {
    padding: 16px;
  }

  .update-info h3 {
    font-size: 1.1em;
  }

  .update-info p {
    font-size: 0.9em;
  }

  .download-buttons-section {
    padding: 16px;
  }

  .download-buttons-header {
    font-size: 1.1em;
    margin-bottom: 16px;
  }

  .copyright {
    font-size: 0.6em;
  }
}
