/* ==========================================================================
   AWS Lightsail Console - Dedicated Login Screen (login.css)
   ========================================================================== */

.login-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 18%, #131b2a 0%, #080b10 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
  overflow-y: auto;
  box-sizing: border-box;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(59, 130, 246, 0.09) 1px, transparent 1px),
    radial-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px);
  background-size: 32px 32px, 48px 48px;
  background-position: 0 0, 16px 16px;
  pointer-events: none;
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: rgba(22, 27, 34, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(48, 54, 61, 0.85);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 38px 34px 28px 34px;
  animation: loginFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes loginFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 26px;
}

.login-logo-circle {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px auto;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.login-logo-icon {
  font-size: 32px;
  line-height: 1;
}

.login-title {
  font-size: 20px;
  font-weight: 700;
  color: #f0f6fc;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.login-subtitle {
  font-size: 12px;
  color: #8b949e;
  margin: 0;
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-label {
  font-size: 12px;
  font-weight: 600;
  color: #c9d1d9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: #6e7681;
  pointer-events: none;
  user-select: none;
}

.login-input {
  width: 100%;
  height: 42px;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 0 42px 0 38px;
  color: #f0f6fc;
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
  box-sizing: border-box;
}

.login-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
  background: #0d1117;
}

.login-pwd-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: #8b949e;
  cursor: pointer;
  padding: 6px;
  font-size: 15px;
  line-height: 1;
  border-radius: 4px;
}

.login-pwd-toggle:hover {
  color: #f0f6fc;
  background: rgba(255, 255, 255, 0.08);
}

.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin-top: 2px;
}

.login-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8b949e;
  cursor: pointer;
  user-select: none;
}

.login-checkbox-label input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #3b82f6;
  cursor: pointer;
}

.login-error-alert {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fca5a5;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.login-submit-btn {
  width: 100%;
  height: 42px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 1px;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  margin-top: 6px;
  cursor: pointer;
}

.login-notice {
  background: #0d1117;
  border: 1px solid #21262d;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: #8b949e;
  margin-top: 4px;
}

.login-notice-icon {
  font-size: 14px;
  line-height: 1.2;
}

.login-notice-text strong {
  color: #c9d1d9;
}

.login-footer {
  margin-top: 22px;
  text-align: center;
  font-size: 11px;
  color: #6e7681;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
