* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: url('images/bg.jpg') center center / cover no-repeat;
  background-color: #3a9bbf;
}

.main-content {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 250px;
}

.login-card {
  background: #ffffff;
  border-radius: 0;
  width: 370px;
  box-shadow: none;
  border: none;
  overflow: hidden;
  padding: 45px 40px 0 40px;
}

.logo-container {
  text-align: left;
  margin-bottom: 15px;
}

h1 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 14px;
}

/* ERROR BOX - pink background like original */
.error-box {
  display: none;
  background: #f2dede;
  border-left: 4px solid #c0392b;
  padding: 12px 14px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: #333;
  line-height: 1.5;
}

.error-box.visible {
  display: block;
}

.field-group {
  margin-bottom: 14px;
}

label {
  display: block;
  font-size: 13px;
  color: #333;
  margin-bottom: 4px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 13px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #3a9bbf;
  box-shadow: 0 0 0 2px rgba(58,155,191,0.15);
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  padding-right: 45px;
}

.show-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #666;
  font-size: 12px;
  cursor: pointer;
}

.show-btn:hover {
  color: #333;
}

.actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  margin-bottom: 10px;
}

.sign-in-btn {
  background-color: #2e7db5;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 9px 22px;
  font-size: 13px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color 0.2s;
}

.sign-in-btn:hover {
  background-color: #266a9c;
}

.sign-in-btn:disabled {
  background-color: #7ab3d0;
  cursor: not-allowed;
}

.stay-signed {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #555;
  cursor: pointer;
  user-select: none;
}

.stay-signed input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.version-section {
  background: #f0f0f0;
  margin: 30px -40px 0 -40px;
  padding: 16px 40px 22px 40px
}

.version-label {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}

.version-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.version-select {
  flex: 1;
  padding: 5px 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 12px;
  color: #333;
  background: #fff;
  cursor: pointer;
}

.help-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #555;
  color: #fff;
  border: none;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

footer {
  text-align: center;
  padding: 12px;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}